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

# Delete Trace

`DELETE /simple/traces/{trace_id}`

Delete a "simple" trace.

Removes the single-span trace created via
`POST /simple/traces/`. Returns the `(trace_id, span_id)` pair
that was removed, for logging or downstream cleanup. Use
`DELETE /tracing/traces/{trace_id}` when operating on a
multi-span trace.

## Path parameters

- `trace_id` string, required

## Response `200`

Successful Response

- SimpleTraceLinkResponse — Response from `DELETE /simple/traces/{trace_id}`.
  - `count` integer — `1` if a trace was removed, `0` otherwise.
  - `link` OTelLinkOutput
    - `span_id` string, nullable
    - `trace_id` string, nullable
    - `attributes` object, nullable

## Other responses

- `422` — Validation Error

## Changes

> 359 revisions in range; 4 could not be searched.

- **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-02** `6e37373d45fe` — 2 info
  - api tag `Traces` added
  - api tag `Simple Traces` removed
- **2026-04-23** `925e8b901a26` — 2 info
  - added the optional property `support_id` to the response with the `200` status
  - added the optional property `support_ts` to the response with the `200` status
- **2026-04-16** `8b06b786c977` — 1 info
  - endpoint added
- **2025-06-27** `e3e84db47198` — 1 breaking
  - api path removed without deprecation

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