Skip to main content
Deletes are for privacy: they remove whole traces, with every span, the summary and the scores. Both routes need the write right and Content-Type: application/json, also with no body.

Delete traces

POST /v1/traces/delete takes exactly one of these fields.
string
Every trace that has a span of this user. A trace with spans of two users goes whole.
string
Every trace that has a span of this session, and every score on the session.
string[]
These traces. The scores of a listed trace go also when the trace has no span.
object
Every trace that /v1/traces/find gives for this trace filter. A filter with no condition gets 400: it matches every trace.
integer
integer
integer
integer
Span segments that held a deleted span.
integer
Segments (files) of the store that still hold the bytes of deleted data, from this delete or earlier ones. 0: no file holds them.
  • The answer comes after the commit. From then on no route gives the data. A crash leaves the store before the delete or after it.
  • A span that arrives after the delete stays, also a span of the same user.
  • With tenants, a delete works in the store of the request’s tenant only. A tenant with no store gets 404.
  • A filter whose text is over the word limit of contains and prefix gets 400. The server checks this at the call and again when the delete runs. Nothing is deleted, the store takes requests as before, and no later start of the server runs that delete.

Purge deleted data

The bytes of deleted spans stay in the files of the store until the server writes those files again. POST /v1/purge writes them again now, and answers when it is done. On a large store that takes minutes: give the client a long timeout. It takes no body.
integer
Segments written again without their deleted data.
integer
Live documents written again: the cost.
integer
Deleted documents that left the files.
integer
0: no file of the store holds data that was deleted before the call.
integer
Bytes of all files of the store before the purge. bytesAfter: after it.

Data lifecycle

Retention, deletes and purges in production.

Filters

Every field of a trace filter.