Delete Environment
client.beta.environments.delete(stringenvironmentID, EnvironmentDeleteParamsparams?, RequestOptionsoptions?): BetaEnvironmentDeleteResponseDELETE/v1/environments/{environment_id}
Delete an environment by ID. Returns a confirmation of the deletion.
Delete Environment
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
const betaEnvironmentDeleteResponse = await client.beta.environments.delete(
"env_011CZkZ9X2dpNyB7HsEFoRfW"
);
console.log(betaEnvironmentDeleteResponse.id);{
"id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"type": "environment_deleted"
}Returns Examples
{
"id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"type": "environment_deleted"
}