# How delete hostname

**URL:** <https://community.influxdata.com/t/how-delete-hostname/32178>\
**Category:** InfluxDB 2\
**Tags:** influxdb\
**Created:** [November 17, 2023, 10:00am UTC](https://community.influxdata.com/t/how-delete-hostname/32178 "2023-11-17T10:00:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephane\_Sanchez](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/stephane_sanchez/32/14609_2.png) [@Stephane\_Sanchez](https://community.influxdata.com/u/Stephane_Sanchez)\
**Post date:** [November 17, 2023, 10:00am UTC](https://community.influxdata.com/t/how-delete-hostname/32178/1 "2023-11-17T10:00:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [November 20, 2023, 8:01am UTC](https://community.influxdata.com/t/how-delete-hostname/32178/2 "2023-11-20T08:01:51Z")

</div>

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](https://docs.influxdata.com/influxdb/v2/write-data/delete-data/).  
Or you could use a client library to query, transform, and write the data back to the original bucket after deleting the data.

---

<div class="post-metadata">

**Author:** ![Stephane\_Sanchez](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/stephane_sanchez/32/14609_2.png) [@Stephane\_Sanchez](https://community.influxdata.com/u/Stephane_Sanchez)\
**Post date:** [December 5, 2023, 7:30pm UTC](https://community.influxdata.com/t/how-delete-hostname/32178/3 "2023-12-05T19:30:19Z")

</div>

Hi Anaisdg

Thank for reply
