刪除外掛程式
DELETE/v1/organizations/plugins/{plugin_id}
Requires
anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.永久刪除外掛程式及其所有版本,效果與管理員在 claude.ai 中刪除時完全相同。該外掛程式可以屬於組織或成員,包括已離開組織的成員。請勿僅因外掛程式並非由您的管線建立就將其刪除:成員或管理員可能已在 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 就緒功能的組織無法使用。
刪除外掛程式
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.plugins.BetaDeletedPlugin;
import com.anthropic.models.beta.organization.plugins.PluginDeleteParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
BetaDeletedPlugin betaDeletedPlugin = client.beta().organization().plugins().delete("plugin_id");
}
}Response 200
{
"id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"type": "plugin_deleted"
}Returns Examples
Response 200
{
"id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"type": "plugin_deleted"
}