Claude Platform Docs

Delete Skill

client.Skills.Delete(ctx, skillID) (*DeletedSkill, error)
DELETE/v1/skills/{skill_id}

Delete Skill

Parameters
skillID string

Unique identifier for the skill.

The format and length of IDs may change over time.

Returns
type DeletedSkill struct{…}
ID string

Unique identifier for the skill.

The format and length of IDs may change over time.

Type SkillDeleted

Deleted object type.

For Skills, this is always "skill_deleted".

defaultskill_deleted

Delete Skill

package main

import (
	"context"
	"fmt"

	"github.com/anthropics/anthropic-sdk-go"
	"github.com/anthropics/anthropic-sdk-go/option"
)

func main() {
	client := anthropic.NewClient(
		option.WithAPIKey("my-anthropic-api-key"),
	)
	deletedSkill, err := client.Skills.Delete(context.TODO(), "skill_id")
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", deletedSkill.ID)
}
{
  "id": "skill_01JAbcdefghijklmnopqrstuvw",
  "type": "skill_deleted"
}
Returns Examples
{
  "id": "skill_01JAbcdefghijklmnopqrstuvw",
  "type": "skill_deleted"
}