---
title: "Delete Trace"
method: DELETE
path: "/tracing/traces/{trace_id}"
tags: ["Observability"]
---

# Delete Trace

`DELETE /tracing/traces/{trace_id}`

## Path parameters

- `trace_id` string, required

## Response `202`

Successful Response

- OTelLinksResponse
  - `count` integer
  - `links` OTelLinkOutput[], nullable
    - `span_id` string, required
    - `trace_id` string, required
    - `attributes` object, 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
- **2026-01-14** `53da4c9de2b7` — 1 info
  - endpoint added
- **2025-06-27** `e3e84db47198` — 1 info
  - api path removed with deprecation

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/tracing/traces/: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/e4c4efcbd25d/schema)
