Claude Platform Docs

Delete Environment

$ ant beta:environments delete
DELETE/v1/environments/{environment_id}

Delete an environment by ID. Returns a confirmation of the deletion.

Parameters
--environment-id: string
--beta: optional array of AnthropicBeta

Optional header to specify the beta version(s) you want to use.

Returns
beta_environment_delete_response: object{ id, type }

Response after deleting an environment.

id: string

Environment identifier

type: "environment_deleted"

The type of response

Delete Environment

ant beta:environments delete \
  --api-key my-anthropic-api-key \
  --environment-id env_011CZkZ9X2dpNyB7HsEFoRfW
{
  "id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
  "type": "environment_deleted"
}
Returns Examples
{
  "id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
  "type": "environment_deleted"
}