---
title: "Delete a label"
method: DELETE
path: "/v1/labels/{labelId}"
tags: ["Labels"]
---

# Delete a label

`DELETE /v1/labels/{labelId}`

Soft-deletes a label that has no versions. If any versions exist (including soft-deleted versions), the call fails with FAILED_PRECONDITION. Versions are immutable and have no delete RPC; archive the label instead when it has versions. Dataset examples attached to the label are not deleted independently — they belong to the label and are not versioned.

## Path parameters

- `labelId` string, required

## Response `200`

A successful response.

- V1DeleteLabelResponse
  - `labelId` string
  - `deleted` boolean

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-09-03** `703019caec67` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/clavata/apis/clavata-public-api-v1/changes/v1/labels/:labelId/delete.md)

---

[API](https://skmtc.dev/clavata/apis/clavata-public-api-v1.md) · [All operations](https://skmtc.dev/clavata/apis/clavata-public-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/clavata/apis/clavata-public-api-v1/revisions/85ae28d4abe6?raw)
