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

## Changes

- **2026-08-03** `a9cab3a16f5d` — 2 info
  - added the new optional request property `project_id`
  - added the non-success response with the status `422`

[Change history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/private/traces/delete/post.md)

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/0739fa5022ca/schema)
