---
title: "Remove a registered OTel span attribute facet."
method: DELETE
path: "/otel/facets/{key}"
tags: ["OTel Facets"]
---

# Remove a registered OTel span attribute facet.

`DELETE /otel/facets/{key}`

## Request

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

Marks the facet `deleting` and stops new spans from populating its slot
immediately, but the Postgres row (and its slot reservation) isn't
removed until the background poller confirms the slot column has been
cleared for all existing spans — otherwise a future facet reusing the
same slot could see stale data. `GET /otel/facets` will keep returning
this facet with `status: deleting` until that finishes.

## Path parameters

- `key` string, required

## Response `204`

Facet deleted

## Other responses

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

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-05** `4b228ebed583`: 4 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `404` status
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 4 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `404` status
  - removed the optional property `status` from the response with the `500` status
- **2026-09-23** `f4efc4d5c7b7`: 4 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `404` status
  - added the optional property `status` to the response with the `500` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/facets/: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)
