---
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

---

[API](https://skmtc.net/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.net/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/versions/2e1079696f45/schema)
