---
title: "Delete feature flag"
method: DELETE
path: "/api/v2/flags/{projectKey}/{featureFlagKey}"
tags: ["Feature flags"]
---

# Delete feature flag

`DELETE /api/v2/flags/{projectKey}/{featureFlagKey}`

Delete a feature flag in all environments. Use with caution: only delete feature flags your application no longer uses.

## Path parameters

- `projectKey` string, string, required — The project key
- `featureFlagKey` string, string, required — The feature flag key. The key identifies the flag in your code.

## Response `204`

Action succeeded

## Other responses

- `401` — Invalid access token
- `404` — Invalid resource identifier
- `409` — Status conflict
- `429` — Rate limited

---

[API](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/revisions/69c5c9aafe78/schema)
