Bulk delete traces
Authentication
Query parameters
ISO 8601 start of time range. Defaults to end_time minus 1 hour.
Filter by environment (e.g., production, staging).
ISO 8601 start of time range. Defaults to end_time minus 1 hour.
Filter by environment (e.g., production, staging).
Deletes multiple traces matching the given filters. Uses the same filter format as the List Traces endpoint. Removes data from both raw span storage and the aggregated trace table.
The request body must contain a non-empty filters object. This prevents accidental deletion of all traces. Maximum 1,000 traces per request — if the filter matches more, narrow your filters or use time-range pagination to delete in batches.
start_time string: ISO 8601 start of time range. Defaults to end_time minus 1 hour.
Example
end_time string: ISO 8601 end of time range. Defaults to current time.
Example
environment string: Filter by environment (e.g., production, staging).filters object required: Filter object to select traces for deletion. Must be non-empty. Uses the same format as the List Traces endpoint.
Available filter fields:
trace_unique_id, customer_identifier, environmentspan_count, llm_call_count, error_counttotal_cost, total_tokens, total_prompt_tokens, total_completion_tokensmetadata__your_fieldSee the Filters API Reference for complete operators and format documentation.
Example
API key authentication. Get your API key from https://platform.respan.ai/platform/api-keys
Filter object to select traces for deletion. Must be non-empty. Uses the same format as the List Traces endpoint. Available filter fields: - trace_unique_id, customer_identifier, environment - span_count, llm_call_count, error_count - total_cost, total_tokens, total_prompt_tokens, total_completion_tokens - Custom metadata: metadata__your_field See the Filters API Reference for complete operators and format documentation.