---
title: "Delete an environment"
method: DELETE
path: "/api/v2/feature-flags/environments/{environment_id}"
tags: ["Feature Flags"]
---

# Delete an environment

`DELETE /api/v2/feature-flags/environments/{environment_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/feature-flags/environments/{environment_id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Deletes an environment. This operation cannot be undone.

## Path parameters

- `environment_id` string, uuid, required

## Response `204`

No Content

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
