---
title: "Delete Annotation"
method: DELETE
path: "/preview/annotations/{trace_id}/{span_id}"
tags: ["Annotations"]
---

# Delete Annotation

`DELETE /preview/annotations/{trace_id}/{span_id}`

## Path parameters

- `trace_id` string, required
- `span_id` string, nullable, required

## Response `200`

Successful Response

- AnnotationLinkResponse
  - `count` integer
  - `annotation_link` Link
    - `span_id` string, nullable
    - `trace_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `72fe88316d15` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-11-05** `e62506c24377` — 1 breaking, 6 info
  - removed the required property `annotation` from the response with the `200` status
  - api tag `Annotations` added
  - api tag `Evals` removed
  - `path` request parameter `span_id` list-of-types was widened by adding types `null`
  - …3 more
- **2025-06-27** `e3e84db47198` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/preview/annotations/:trace_id/:span_id/delete.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/72fe88316d15/schema)
