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

# Delete Annotation

`DELETE /preview/annotations/{trace_id}`

## Path parameters

- `trace_id` string, required

## Query parameters

- `span_id` string, nullable

## Response `200`

Successful Response

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

## Other responses

- `422` — Validation Error

## Changes

- **2025-11-05** `e62506c24377` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/preview/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.dev/agenta-ai/apis/agenta-api/revisions/53da4c9de2b7?raw)
