---
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}`

You must authenticate using an access token with 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/github-v3-rest-api-6.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-6/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-6/versions/15db3fa0759b/schema)
