[root@graphana app1]# curl -v -X POST -g 'http://localhost:8428/api/v1/admin/tsdb/delete_series?match[]={__name__=~".*"}'
* About to connect() to localhost port 8428 (#0)
* Trying ::1...
* Connected to localhost (::1) port 8428 (#0)
> POST /api/v1/admin/tsdb/delete_series?match[]={name=~".*"} HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:8428
> Accept: */*
>
< HTTP/1.1 204 No Content
< X-Server-Hostname: 1761e1c0c207
< Date: Thu, 12 Aug 2021 05:46:56 GMT
<
* Connection #0 to host localhost left intact
[root@graphana01prodmgmt app1]# curl http://localhost:8428/api/v1/series/count
{"status":"success","data":[15286403]}
[root@graphana app1]#
[root@graphana app1]# curl -v -X POST -g 'http://localhost:8428/api/v1/admin/tsdb/delete_series?match[]={job="node_exporter"}'
* About to connect() to localhost port 8428 (#0)
* Trying ::1...
* Connected to localhost (::1) port 8428 (#0)
> POST /api/v1/admin/tsdb/delete_series?match[]={job="node_exporter"} HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:8428
> Accept: */*
>
< HTTP/1.1 204 No Content
< X-Server-Hostname: 1761e1c0c207
< Date: Thu, 12 Aug 2021 05:47:39 GMT
<
* Connection #0 to host localhost left intact
[root@graphana app1]#