# system.tag.removeTag("") removes all tags on gateway

**URL:** <https://forum.inductiveautomation.com/t/system-tag-removetag-removes-all-tags-on-gateway/21172>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [November 30, 2018, 9:47pm UTC](https://forum.inductiveautomation.com/t/system-tag-removetag-removes-all-tags-on-gateway/21172 "2018-11-30T21:47:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![salbrechtsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/salbrechtsen/32/18660_2.png) [@salbrechtsen](https://forum.inductiveautomation.com/u/salbrechtsen)\
**Post date:** [November 30, 2018, 9:47pm UTC](https://forum.inductiveautomation.com/t/system-tag-removetag-removes-all-tags-on-gateway/21172/1 "2018-11-30T21:47:48Z")

</div>

I found out today that `system.tag.removeTag("")` will delete all tags configured on the gateway.

You could argue that the `""` path is all tags in the system. However, should this be the expected behavior when `system.tag.exists("")` returns false?

I am not sure if this is desired behavior or not but figured I would at least post here for discussion.

---

<div class="post-metadata">

**Author:** ![salbrechtsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/salbrechtsen/32/18660_2.png) [@salbrechtsen](https://forum.inductiveautomation.com/u/salbrechtsen)\
**Post date:** [December 18, 2018, 10:07pm UTC](https://forum.inductiveautomation.com/t/system-tag-removetag-removes-all-tags-on-gateway/21172/2 "2018-12-18T22:07:54Z")

</div>

I should note the docs for this function were quietly updated to reflect this observation shortly after I posted this, I was hoping for an IA response but I think as long as the docs are updated i’m satisfied.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 18, 2018, 10:14pm UTC](https://forum.inductiveautomation.com/t/system-tag-removetag-removes-all-tags-on-gateway/21172/3 "2018-12-18T22:14:36Z")

</div>

Sorry - we did update the docs as a temporary measure, but updating the function so that this doesn’t happen did make it onto the roadmap to be fixed in 7.9 and 8.0.

---

<div class="post-metadata">

**Author:** ![salbrechtsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/salbrechtsen/32/18660_2.png) [@salbrechtsen](https://forum.inductiveautomation.com/u/salbrechtsen)\
**Post date:** [December 18, 2018, 10:25pm UTC](https://forum.inductiveautomation.com/t/system-tag-removetag-removes-all-tags-on-gateway/21172/4 "2018-12-18T22:25:25Z")

</div>

No worries 🙂 As always, thanks for the response.
