To enable the delete operation we may need to enable the --web.enable-admin-api'
flag so how we can enable it . I am currently using non docker single node cluster version and trying to run below curl command
curl -X DELETE -g 'http://localhost:8481/api/v1/0/tsdb/delete_series?match[]={foo.bar.baz="bar"}'
The delete API in VictoriaMetrics works out of the box. There is no need in enabling it.
It looks like your command contains invalid port and path to delete API
in single-node VictoriaMetrics. Try the following command according to docs:
curl -g 'http://localhost:8428/api/v1/admin/tsdb/delete_series?match[]={foo.bar.baz="bar"}'
Note that the match[]
arg must be properly encoded with url encoding. Otherwise it may be improperly transferred to VictoriaMetrics.