---
title: "Delete a trace"
method: DELETE
path: "/api/traces/{trace_unique_id}/"
tags: ["traces"]
---

# Delete a trace

`DELETE /api/traces/{trace_unique_id}/`

Delete a single trace by `trace_unique_id`. `start_time` and `end_time` can be provided to narrow the request to the relevant time range.

## Path parameters

- `trace_unique_id` string, required

## Query parameters

- `start_time` string, date-time
- `end_time` string, date-time

## Headers

- `Authorization` string, required

## Response `200`

Trace delete issued successfully.

- TracesDeleteTraceResponse200
  - `message` string, required — Delete confirmation message.

## Other responses

- `401` — Unauthorized - Missing/invalid authentication
- `500` — Internal Server Error

## Changes

- **2026-08-13** `4e064cf81dae` — 5 info
  - added the new optional `query` request parameter `end_time`
  - added the new optional `query` request parameter `start_time`
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `401`
  - …1 more
- **2026-07-31** `c26d550029f8` — 1 breaking, 2 warning, 2 info
  - removed the media type `application/json` for the response with the status `200`
  - deleted the `query` request parameter `end_time`
  - deleted the `query` request parameter `start_time`
  - removed the non-success response with the status `401`
  - …1 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/traces/:trace_unique_id/delete.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c61efaf24756/schema)
