---
title: "Delete an environment"
method: DELETE
path: "/repos/{owner}/{repo}/environments/{environment_name}"
tags: ["repos"]
---

# Delete an environment

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

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

## Path parameters

- `owner` string, required
- `repo` string, required
- `environment_name` string, required

## Response `204`

Default response

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
