Excluir ambiente
DELETE/v1/environments/{environment_id}
Exclua um ambiente por ID. Retorna uma confirmação da exclusão.
Path parameters
Headers
Returns
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.
Excluir ambiente
curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID \
-X DELETE \
-H 'anthropic-version: 2026-10-21' \
-H 'anthropic-beta: managed-agents-2026-04-01' \
-H "Authorization: Bearer $ANTHROPIC_API_KEY"Response 200
{
"id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"type": "environment_deleted"
}Returns Examples
Response 200
{
"id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"type": "environment_deleted"
}