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:
influx delete --bucket mybucket --start '1970-01-01T00:00:00Z' --stop $(date +"%Y-%m-%dT%H:%M:%SZ") --predicate 'host="oldhostname"'
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.
Any suggestions?