Skip to main content
Perplexity

Search documentation

Type to search this documentation.

Delete a skill

DELETE/v1/skills/{skill_id}Delete a skill

Deletes a skill. Pass the current revision as expected_revision; the delete fails with 409 if the skill has a newer revision, so a delete never races a concurrent update.

Parameters

skill_idstringpathrequired

Skill identifier returned by create or `GET /v1/skills`

expected_revisionstringqueryrequired

Opaque revision token the skill must currently be at. The write applies only if it matches, so it cannot race a concurrent update.

Responses

204Skill deleted
400Invalid requestapplication/json
objectApiError
errorobject
Show child attributes
codeintegerrequired

HTTP status code

messagestringrequired

Human-readable error message

paramnull | string

Parameter that caused the error

typestringrequired

Error type identifier

Example response
{
  "error": {
    "code": 0,
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
404Skill not foundapplication/json
objectApiError
errorobject
Show child attributes
codeintegerrequired

HTTP status code

messagestringrequired

Human-readable error message

paramnull | string

Parameter that caused the error

typestringrequired

Error type identifier

Example response
{
  "error": {
    "code": 0,
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
409Revision conflict; the skill moved past expected_revisionapplication/json
objectApiError
errorobject
Show child attributes
codeintegerrequired

HTTP status code

messagestringrequired

Human-readable error message

paramnull | string

Parameter that caused the error

typestringrequired

Error type identifier

Example response
{
  "error": {
    "code": 0,
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
429Rate limit exceededapplication/json
objectApiError
errorobject
Show child attributes
codeintegerrequired

HTTP status code

messagestringrequired

Human-readable error message

paramnull | string

Parameter that caused the error

typestringrequired

Error type identifier

Example response
{
  "error": {
    "code": 0,
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
502Skill service unavailableapplication/json
objectApiError
errorobject
Show child attributes
codeintegerrequired

HTTP status code

messagestringrequired

Human-readable error message

paramnull | string

Parameter that caused the error

typestringrequired

Error type identifier

Example response
{
  "error": {
    "code": 0,
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
Documentation menu