Claude Platform Docs

移除遙測目的地工作區

$ ant beta:organization:telemetry-destinations:workspaces remove
DELETE/v1/organizations/telemetry_destinations/{destination_id}/workspaces/{workspace_id}

從目的地的工作區清單中移除一個工作區。

在 include 模式下,該工作區的 span 會停止傳送至目的地;在 exclude 模式下,則會開始傳送。已封存的工作區也可以移除。

當工作區不在清單中時,API 會傳回 404。workspaces.type 為 all 的目的地沒有清單,因此 API 會傳回 400。

請參閱 OpenTelemetry 匯出指南,進一步了解如何為目的地選擇工作區。

Parameters
--destination-id: string⁠Path parameter

ID of the destination (tdst_...).

--workspace-id: string⁠Path parameter

ID of the workspace to remove (wrkspc_...).

--beta: optional array of AnthropicBeta⁠Header parameter

This endpoint is in beta: requests must send telemetry-destinations-2026-08-11 in this header.

Returns
beta_deleted_telemetry_destination_workspace: object{ type: "telemetry_destination_workspace_deleted", telemetry_destination_id, workspace_id }

Confirmation that a workspace was removed from a destination's list.

type: "telemetry_destination_workspace_deleted"
telemetry_destination_id: string

ID of the telemetry destination (tdst_...).

workspace_id: string

ID of the workspace that was removed (wrkspc_...).

移除遙測目的地工作區
ant beta:organization:telemetry-destinations:workspaces remove \
  --api-key my-anthropic-api-key \
  --destination-id destination_id \
  --workspace-id workspace_id
Returns Examples
Response 200
{
  "telemetry_destination_id": "telemetry_destination_id",
  "type": "telemetry_destination_workspace_deleted",
  "workspace_id": "workspace_id"
}