刪除外掛程式
DELETE/v1/organizations/plugins/{plugin_id}
Requires
anthropic-beta: ce-plugins-2026-09-01. How to send beta headers永久刪除外掛程式及其所有版本,效果與管理員在 claude.ai 中刪除時完全相同。該外掛程式可以屬於組織或成員,包括已離開組織的成員。
組織擁有的外掛程式的安裝設定會一併刪除;成員擁有的外掛程式的分享會被撤回,其擁有者將不再擁有該外掛程式。
若要以可復原的方式停用組織擁有的外掛程式,請改為將其全組織安裝設定設為 not_available(並移除或變更任何群組設定,因為群組設定會對其成員覆寫全組織設定)。只有位於 manual 市集中的外掛程式可以在此刪除;從儲存庫同步的外掛程式需透過從儲存庫中移除來刪除(400)。
接受的憑證:具有 write:plugins 範圍的 Admin API 金鑰。
每個請求都必須包含 beta 標頭 anthropic-beta: ce-plugins-2026-09-01。缺少此標頭的請求會傳回 404,與端點不存在時完全相同。外掛程式 API 目前為 beta 版,僅供 Claude Enterprise 組織使用。Claude Platform(Claude Console)組織或已啟用 HIPAA 就緒功能的組織無法使用。
Parameters
Returns
刪除外掛程式
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;
$client = new Client(apiKey: 'my-anthropic-api-key');
$betaDeletedPlugin = $client->beta->organization->plugins->delete(
'plugin_id', betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24]
);
var_dump($betaDeletedPlugin);Response 200
{
"id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"type": "plugin_deleted"
}Returns Examples
Response 200
{
"id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"type": "plugin_deleted"
}