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

# Delete Annotation

`DELETE /annotations/{trace_id}`

## Path parameters

- `trace_id` string, required

## Query parameters

- `span_id` string, nullable

## Response `200`

Successful Response

- AnnotationLinkResponse
  - `count` integer
  - `annotation_link` OTelLinkOutput
    - `span_id` string, nullable
    - `trace_id` string, nullable
    - `attributes` object, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-19** `a7f9a6823230` — 2 warning
  - removed the optional property `support_id` from the response with the `200` status
  - removed the optional property `support_ts` from the response with the `200` status
- **2026-05-08** `5e6f53ce5d08` — 1 info
  - endpoint added
- **2026-04-16** `8b06b786c977` — 1 breaking
  - api path removed without deprecation
- **2026-03-07** `20311f763505` — 2 info
  - added `#/components/schemas/OTelLink-Output` to the `annotation_link` response property `anyOf` list for the response status `200`
  - removed `#/components/schemas/Link` from the `annotation_link` response property `anyOf` list for the response status `200`
- **2026-02-27** `8fcd55a5a656` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/annotations/:trace_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/a7f9a6823230/schema)
