Claude Platform Docs

移除插件安装设置

$client->beta->organization->plugins->installationSettings->remove(string target, string pluginID, ?list<AnthropicBeta> betas): BetaDeletedPluginInstallationSetting
DELETE/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

移除组织所有插件针对整个组织或某个 RBAC 组的自身安装设置。

移除 organization 目标会使插件恢复为其市场的默认安装设置,并保留各组的设置。移除某个组的设置会使该组成员回退到插件的组织范围设置或其所属其他组的设置。

如果目标没有自身的设置,则返回 404(已继承其市场默认设置的插件没有 organization 设置);成员所有的插件同样返回 404。

移除操作也算作插件的一次安装设置写入:请逐个发送所有此类写入请求。如果同一插件的多个请求同时到达,服务器会依次处理它们,并可能对其中一些返回 503 和 x-should-retry: true 而不应用;请等待一两秒后再次发送移除请求。重试时返回 404 表示该设置已被移除。

接受的凭据:具有 write:plugins 作用域的 Admin API 密钥。

每个请求都必须包含 beta 标头 anthropic-beta: ce-plugins-2026-09-01。缺少该标头的请求将返回 404,与端点不存在时完全相同。插件 API 目前处于 beta 阶段,仅适用于 Claude Enterprise 组织。Claude Platform(Claude Console)组织以及启用了 HIPAA 就绪功能的组织无法使用。

Parameters
pluginID: string⁠Path parameter

ID of the Plugin (prefixed plugin_).

target: string⁠Path parameter

The target whose own setting is removed: the literal organization for the Plugin's organization-wide setting, or an RBAC Group's ID (prefixed rbac_group_) for that group's own setting. Removing the organization setting returns the Plugin to its marketplace's default.

betas?: optional list<AnthropicBeta>⁠Header parameter

This endpoint is in beta: requests must send ce-plugins-2026-09-01 in this header.

Returns
class BetaDeletedPluginInstallationSetting { $type = 'plugin_installation_setting_deleted'; $pluginID; $target; }
"plugin_installation_setting_deleted" type

Always plugin_installation_setting_deleted.

string pluginID

The Plugin's ID.

Target target

Whose setting was removed.

移除插件安装设置
<?php

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

use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;

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

$betaDeletedPluginInstallationSetting = $client
  ->beta
  ->organization
  ->plugins
  ->installationSettings
  ->remove(
  'target',
  pluginID: 'plugin_id',
  betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
);

var_dump($betaDeletedPluginInstallationSetting);
Returns Examples
Response 200
{
  "plugin_id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
  "target": {
    "rbac_group_id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
    "type": "rbac_group"
  },
  "type": "plugin_installation_setting_deleted"
}