Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Delete traces

POST/v1/private/traces/deleteDelete traces

Delete traces

Request body

application/json
objectBatchDeleteByProject
idsarray of string · uuidrequired

Ids of the traces to delete

maxItems 1000 · minItems 1 · uniqueItems true

Show child attributes

maxItems 1000 · minItems 1 · uniqueItems true

project_idstring · 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.

Example request
{
  "ids": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "project_id": "00000000-0000-0000-0000-000000000000"
}

Responses

204No Content
422Unprocessable Contentapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu