---
title: "Delete a feature flag"
method: DELETE
path: "/api/v4/projects/{id}/feature_flags/{feature_flag_name}"
tags: ["feature_flags"]
---

# Delete a feature flag

`DELETE /api/v4/projects/{id}/feature_flags/{feature_flag_name}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/feature_flags/{feature_flag_name}`
- Auth: none declared

Deletes a specified feature flag.

## Path parameters

- `id` string, required
- `feature_flag_name` string, required

## Response `204`

Unauthorized

## Other responses

- `403`: Forbidden
- `404`: Not found

---

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