Delete Environment
Delete an environment by ID. Returns a confirmation of the deletion.
delete/v1/environments/{environment_id}?beta=true
Path parameters
environment_idstring required
Headers
anthropic-betastring
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
anthropic-versionstring
The version of the Claude API you want to use.
Read more about versioning and our version history here.
The version of the Claude API you want to use.
Read more about versioning and our version history here.
x-api-keystring nullable
Response
Successful Response
Example response
{
"type": "environment_deleted",
"id": "env_011CZkZ9X2dpNyB7HsEFoRfW"
}