---
title: "Delete an environment"
method: DELETE
path: "/environments/{id}"
tags: ["environments"]
---

# Delete an environment

`DELETE /environments/{id}`

Deletes an environment with the given environment ID. You can only delete environments that don't have any active API keys associated with it.

## Path parameters

- `id` string, required

## Headers

- `X-API-Version` string, required

## Response `204`

Empty response indicating a successful operation.

## Other responses

- `400` — Error: Environment can't be deleted due to validation errors.
- `401` — Error: Invalid API key.
- `404` — Error: Environment with the given ID was not found.
- `429` — Error: API key has exceeded its rate limit.

---

[API](https://skmtc.dev/fingerprint/apis/management-api.md) · [All operations](https://skmtc.dev/fingerprint/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fingerprint/management-api/revisions/b17eccec9d47/schema)
