Claude Platform Docs

Hapus Versi Skill

$client->beta->skills->versions->delete(string version, string skillID, ?list<AnthropicBeta> betas, ?string workspaceID): DeletedSkillVersion
DELETE/v1/skills/{skill_id}/versions/{version}

Hapus Versi Skill

Parameters
skillID: string

Unique identifier for the skill.

The format and length of IDs may change over time.

version: string

Identifies the skill version by its version ID.

Requests carrying the skills-2025-10-02 beta header address versions by their Unix epoch timestamp instead (e.g., "1759178010641129").

betas?:optional list<AnthropicBeta>

Optional header to specify the beta version(s) you want to use.

workspaceID?:optional string
Returns
class DeletedSkillVersion { $type = 'skill_version_deleted'; $id; }
"skill_version_deleted" type

Deleted object type.

For Skill Versions, this is always "skill_version_deleted".

string id

Unique identifier for this Skill Version. The id addresses the version in paths and pins it in references.

Hapus Versi Skill
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'my-anthropic-api-key');

$betaDeletedSkillVersion = $client->beta->skills->versions->delete(
  'version',
  skillID: 'skill_id',
  betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
  workspaceID: 'wrkspc_011CZkZaBF1tNoB5wlCeusgy',
);

var_dump($betaDeletedSkillVersion);
Returns Examples
Response 200
{
  "id": "id",
  "type": "skill_version_deleted"
}