Deletes selected data

POST {{baseUrl}}/admin/tsdb/delete_series?match[]=irure&start=irure&end=irure

DeleteSeries deletes data for a selection of series in a time range. The actual data still exists on disk and is cleaned up in future compactions or can be explicitly cleaned up by hitting the Clean Tombstones endpoint.


NOTE: This endpoint marks samples from series as deleted, but will not necessarily prevent associated series metadata from still being returned in metadata queries for the affected time range (even after cleaning tombstones). The exact extent of metadata deletion is an implementation detail that may change in the future.


New in v2.1 and supports PUT from v2.9

Request Params

KeyDatatypeRequiredDescription
match[]string(Required) Repeated label matcher argument that selects the series to delete. At least one match[] argument must be provided.

Example: ?match[]=up&match[]=process_start_time_seconds{job="prometheus"}' | | start | string | | Start timestamp. Optional and defaults to minimum possible time. | | end | string | | End timestamp. Optional and defaults to maximum possible time.

Not mentioning both start and end times would clear all the data for the matched series in the database. |