Supprimer un environnement
DELETE/v1/environments/{environment_id}
Supprimer un environnement par son identifiant. Renvoie une confirmation de la suppression.
Parameters
Returns
Supprimer un environnement
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);Response 200
{
"id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"type": "environment_deleted"
}Returns Examples
Response 200
{
"id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"type": "environment_deleted"
}