Delete metrics from DB

Delete metrics from DB

I have a script that at one point has written a metric with a certain tags. This was however incorrect and the script has been fixed since then, so it does not write the metric with these tags any longer.

However the metric with the incorrect tags still appear in the DB, and still gets zeroes or nulls written to it, even when the script does not write these values.

How can I delete all metrics for a certain device? Or even specific metric names for a certain device?

I am thinking that that might fix it.

The metric in question is:


There is a similar post on the Crowd with some answers that might be helpful.