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

---

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