---
search:
  tags:
    - Environments
    - DELETE
seo:
  description: >-
    Deletes an environment with its tenants and all… Reference for the DELETE
    /_luna/orgs/{org}/projects/{project}/environments/{env} endpoint in the Luna
    API.
sidebar:
  label: Delete an environment
  badge: DELETE
title: Delete an environment
type: openapi-operation
---
Deletes an environment with its tenants and all their data. This cannot be undone. Production is deleted with its project.

`DELETE /_luna/orgs/{org}/projects/{project}/environments/{env}`

**Responses**

- `200` — What was deleted.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "deleted": true,
  "tenants": [
    "string"
  ]
}
```
