# Delete environment

```http
DELETE /projects/{project_reference}/environments/{environment_id}
```

Delete an environment. Requires project.environments.manage.

## Parameters

| Name                | In   | Required | Description                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project. |
| `environment_id`    | path | Yes      | Environment ID                                             |

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | Environment deleted successfully               |
| 400    | Bad request                                    |
| 401    | Unauthorized                                   |
| 403    | Forbidden. API keys also require delete scope. |
| 404    | Not found                                      |
| 500    | Server error                                   |
