---
title: "DELETE /projects/{project_id}/flags/{key}"
method: DELETE
path: "/projects/{project_id}/flags/{key}"
tags: ["Feature Flags"]
---

# DELETE /projects/{project_id}/flags/{key}

`DELETE /projects/{project_id}/flags/{key}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/flags/{key}`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `key` string, required

## Response `200`

Flag archived

- ArchiveFlagResponse
  - `archived_at` string, nullable
  - `key` string, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Flag not found
- `500`: Internal server error

## Changes

- **2026-08-04** `c647b6ab1d2c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/flags/:key/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
