starting the server with the option
--web.enable-admin-api
Prometheus
# delete alerts series
curl -v -X POST -g 'http://localhost:9090/api/v2/admin/tsdb/delete_series?match[]=ALERTS'
# delete data from disk
curl -v -X POST -g http://localhost:9090/api/v2/admin/tsdb/clean_tombstones
Victoria Metrics
curl -v -X POST -g 'http://localhost:8428/api/v1/admin/tsdb/delete_series?match[]={job="http_check"}'
curl -v -X POST -g 'http://localhost:8428/api/v1/admin/tsdb/delete_series?match[]={host="seever01"}'