---
title: "Delete Label Key"
method: DELETE
path: "/core/label-keys/{key_id}"
tags: ["Labels"]
---

# Delete Label Key

`DELETE /core/label-keys/{key_id}`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/label-keys/{key_id}`
- Auth: HTTP bearer

Delete a key, stripping it from every agent, workflow and saved view.
Returns how many of each changed.

## Path parameters

- `key_id` string, uuid, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Response `200`

Successful Response

- LabelChangeCounts
  - `agents` integer
  - `workflows` integer
  - `saved_views` integer

## Other responses

- `422`: Validation Error

---

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