Claude Platform Docs

Delete Skill

DeletedSkill skills().delete(SkillDeleteParamsparams = SkillDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
DELETE/v1/skills/{skill_id}

Delete Skill

Parameters
SkillDeleteParams params
Optional<String> skillId

Unique identifier for the skill.

The format and length of IDs may change over time.

Returns
class DeletedSkill:
String id

Unique identifier for the skill.

The format and length of IDs may change over time.

JsonValue type "skill_deleted"constant

Deleted object type.

For Skills, this is always "skill_deleted".

Delete Skill

package com.anthropic.example;

import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.skills.DeletedSkill;
import com.anthropic.models.skills.SkillDeleteParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        AnthropicClient client = AnthropicOkHttpClient.fromEnv();

        DeletedSkill deletedSkill = client.skills().delete("skill_id");
    }
}
{
  "id": "skill_01JAbcdefghijklmnopqrstuvw",
  "type": "skill_deleted"
}
Returns Examples
{
  "id": "skill_01JAbcdefghijklmnopqrstuvw",
  "type": "skill_deleted"
}