Admiral

Projects

Delete an environment

DELETE
/v1/projects/{project}/environments/{environment}
  • FAILED_PRECONDITION while the environment manages anything: a live component, a running apply, or a hold. Apply a change set that destroys or orphans every component first.
    • ABORTED when etag is set and the environment changed since it was read.

Scope: env:write

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Path Parameters

project*string

The project id.

environment*string

The environment id.

Query Parameters

etag?etag

When set, the delete is refused unless it matches the environment's current etag.

Response Body

application/json

curl -X DELETE "https://example.com/v1/projects/string/environments/string"
{}