How delete hostname

Hi,

How to delete host in host ?

I arrive to delete data in host : influx delete -b system -p ‘host=“gitlaba1p1m”’ --start 2022-01-01T00:00:00Z --stop 2023-12-31T23:59:59Z

But the hostname gitlaba1p1m is already in table host.

Thank

Hello @Stephane_Sanchez,
unfortunately you can’t delete individual tags like host. You could delete all of those point and rewrite them without the host but that’s the closest option.
If it’s not that much data, you could query it with Flux, use the drop() or keep functions() to remove that tag and then you could use the to() function to write it to a new bucket or measurement and then use Delete data | InfluxDB OSS v2 Documentation.
Or you could use a client library to query, transform, and write the data back to the original bucket after deleting the data.

1 Like

Hi Anaisdg

Thank for reply