I’m using Telegraf to pull metrics into InfluxDB, at some point I changed the hostname of one of the boxes Telegraf is monitoring and I wanted to purge all the data from before the hostname change and purge the old host tag too so it doesn’t show up anymore.
I think I’ve successfully deleted all the data points as I see no data in the web UI any more, using:
However despite the web UI saying “No Results”, it’s still finding the “oldhostname” tag and so showing it as available for filtering by “host”. I can’t work out, now that all the data linked to that tag is gone, how to delete the tag itself. I can’t find anything in any of the docs how to delete old tags and Google is drawing blanks.
This is still an issue. I wanted to created a tag named “main”, but due to an error I created tags named “m”, “a” and “i” - before my python loop got exhausted and made an exception. Only one point of each was created and I removed them from the bucket, but whenever I have a range spanning over those points - I can see them as valid tags.
I think I ran OSS 2.2 at that time and now I’m running OSS 2.4 - fortunately time has gone, and ranges are seldom covering the points anymore.
4 year later…. InfluxDB v2.7.10…This problem is still so annoying!!!, I’m at the point where I’d be willing to pay someone if they can tell me how to remove this tag value. Just for kicks I just upgraded to InfluxDB v2.8.0 and its still the same the command deletes all the data points but the value is still left!
I run influxDB in a docker container in linux so in general that made it difficult/impossible to simply stop influxd process without stopping the whole container in order to rebuild indexes. I had to do it on the docker host itself
While on a regular host the data is usually located at
/var/lib/influxdb2/engine/data/
on host where it runs in a docker container in my case it resides in (this may vary depending on your config)