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

idstring required

Environment identifier

type'environment_deleted' required

The type of response

Example response

{
  "type": "environment_deleted",
  "id": "env_011CZkZ9X2dpNyB7HsEFoRfW"
}

Changes

Changed in 3 of the 68 revisions of this API.121

  • 5e4a8830793b11See the full diff
    • the response property const value environment_deleted was removed for the status

      response-property-const-removed

    • added the new environment_deleted enum value to the response property for the response status

      response-property-enum-value-added

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • deleted the cookie request parameter sessionKey

      request-parameter-removed

    • endpoint added

      endpoint-added