---
title: "Deactivate (clear) a flag"
method: PATCH
path: "/flags/{id}/deactivate"
tags: ["flags"]
---

# Deactivate (clear) a flag

`PATCH /flags/{id}/deactivate`

Deactivates (clears) a specific flag by its ID.

## Path parameters

- `id` string, required

## Headers

- `organization-id` string

## Response `200`

## Other responses

- `201` — The flag has been successfully cleared.
- `400` — Bad request.
- `401` — Unauthorized if authorization token is not provided or invalid.
- `403` — Forbidden if user access is not right.

---

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