---
title: "Deletes an environment by name"
method: DELETE
path: "/api/admin/environments/{name}"
tags: ["Environments"]
---

# Deletes an environment by name

`DELETE /api/admin/environments/{name}`

**Enterprise feature**

Given an existing environment by name, this endpoint will attempt to delete it

## Path parameters

- `name` string, required

## Response `200`

This response has no body.

## Other responses

- `400` — The request data does not match what we expect.
- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/revisions/b2c3116e633e/schema)
