Claude Platform Docs

Elimina chiave esterna

$ ant organization:external-keys delete
DELETE/v1/organizations/external_keys/{external_key_id}

Elimina una configurazione di chiave esterna.

La richiesta viene rifiutata se un workspace fa ancora riferimento a questa configurazione.

Parameters
--external-key-id: string⁠Path parameter

ID of the External Key.

maxLength2048
Returns
OrganizationExternalKeyDeleteResponse: object{ type: "external_key_deleted", id }
type: "external_key_deleted"
id: string

ID of the deleted External Key.

Errors

Any method can also return the general HTTP errors.

Each code below is the value of error.details.error_code in the response body.

HTTP status 400error_code: "external_key_in_workspace_policy"

The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key.

HTTP status 403error_code: "sandbox_egress_restricted"

The request came from a Claude sandbox with restricted network access, which is not allowed to make this request. Send it from outside the sandbox, or from a sandbox with unrestricted network access.

Elimina chiave esterna
ant organization:external-keys delete \
  --external-key-id external_key_id
Returns Examples
Response 200
{
  "id": "ekey_01AbCdEfGhIjKlMnOpQrStUv",
  "type": "external_key_deleted"
}