# DELETE /repos/{owner}/{repo}/environments/{environment_name}

**Resource:** [repos](../resources/repos.md)
**Delete an environment**
**Operation ID:** `repos/delete-an-environment`

OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Responses

| Status | Description |
|--------|-------------|
| 204 | Default response |

