---
title: "Delete an Environment"
method: DELETE
path: "/2/teams/{teamSlug}/environments/{ID}"
tags: ["Environments"]
---

# Delete an Environment

`DELETE /2/teams/{teamSlug}/environments/{ID}`

This deletes and immediately deactivates the Environment. This is an irreversible operation.

Environments with Deletion Protection enabled cannot be deleted. To delete an Environment with Deletion Protection enabled, first disable Deletion Protection by updating the Environment with `settings.delete_protected = false`.

## Response `204`

No Content

## Other responses

- `400` — The provided request body was invalid.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `429` — Rate Limit Exceeded
- `500` — InternalError

---

[API](https://skmtc.net/honeycomb/apis/honeycomb-api.md) · [All operations](https://skmtc.net/honeycomb/apis/honeycomb-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/honeycomb/honeycomb-api/revisions/117619fac2a5/schema)
