--- title: "Delete an environment" canonical: "https://admiral.io/docs/api/projects/EnvironmentAPI_DeleteEnvironment" --- # Delete an environment `DELETE https://api.admiral.io/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` ### Path parameters - `project` (string, required): The project id. - `environment` (string, required): The environment id. ### Query parameters - `etag` (string): When set, the delete is refused unless it matches the environment's current etag. ### Response 200 Success Type: DeleteEnvironmentResponse.