Traces

Bulk Delete Traces

Bulk-delete traces matching the same filters as GET .

Strategy: select the matching trace ids first, then DELETE both tables by id. Two queries instead of a join keeps the SQL portable across PG and SQLite and avoids DELETE ... USING syntax that SQLite does not support.

delete/admin/api/v1/traces

Query parameters

started_afterstring date-time nullable
started_beforestring date-time nullable
modelstring nullable
statusstring nullable
user_idstring nullable
session_idstring nullable
name_containsstring nullable

Response

Successful Response

deletedTracesinteger required
deletedSpansinteger required

Changes

No recorded changes to this endpoint across all 2 revisions of this API.