Projects
Delete an 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
etagis set and the environment changed since it was read.
- ABORTED when
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"{}