---
title: "Delete traces"
method: POST
path: "/v1/private/traces/delete"
tags: ["Traces"]
---

# Delete traces

`POST /v1/private/traces/delete`

Delete traces

## Request body

- BatchDeleteByProject
  - `ids` string[], required — Ids of the traces to delete
  - `project_id` string, uuid — Optional. Scopes the deletion to this project. When omitted, each trace's owning project is resolved automatically and the trace is deleted under its full key, so a trace can be deleted without knowing its project.

## Response `204`

No Content

## Other responses

- `422` — Unprocessable Content

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
