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

# Delete Trace

`DELETE /preview/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-01-14** `53da4c9de2b7` — 2 info
  - api tag `Deprecated` added
  - api tag `Tracing` removed
- **2025-11-05** `e62506c24377` — 3 breaking, 3 info
  - `path` request parameter `trace_id` list-of-types was narrowed by removing types `integer`
  - the response property `count` became optional for the status `202`
  - removed the required property `version` from the response with the `202` status
  - api operation id `remove_trace` removed and replaced with `delete_trace`
  - …2 more
- **2025-06-27** `e3e84db47198` — 1 info
  - endpoint added

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