Delete a Skill
Updated at:
Deletes a custom Skill and all its versions. The operation is irreversible.
Endpoint
DELETE
/api/v1/skills/{skill_id}Deletes a custom Skill and all its versions. The operation is irreversible. Agents that have mounted an older version are not affected.
Path parameters
skill_idstringRequiredCustom Skill ID
Response fields
Returns a SkillDeletedResponse.
idstringID of the deleted Skill
typestringAlways skill_deleted
Example
curl -X DELETE "https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/skills/skill_abc123" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response example
{
"success": true,
"error_code": null,
"error_msg": null,
"data": {
"id": "skill_abc123",
"type": "skill_deleted"
},
"request_id": "15a89d4c-f142-4e00-a9f7-b088442417c9"
}
Error codes
| HTTP status | error_code | Description |
|---|---|---|
| 401 | WORKSPACE_ID_ILLEGAL | Identity information is missing or invalid |
| 400 | SKILL_ID_IS_NULL | skill_id is blank |
| 500 | SKILL_NOT_EXIST | The Skill does not exist, is deleted, or is inaccessible. A repeated delete returns this error |
| 500 | SKILL_DELETE_OFFICIAL_NOT_ALLOWED | Attempted to delete an official Skill |
| 500 | SKILL_DELETE_ERROR | Failed to delete the Skill |
Is this page helpful?