# Deleting tags using XML import

**URL:** <https://forum.inductiveautomation.com/t/deleting-tags-using-xml-import/14564>\
**Category:** Ignition\
**Created:** [June 20, 2017, 12:22pm UTC](https://forum.inductiveautomation.com/t/deleting-tags-using-xml-import/14564 "2017-06-20T12:22:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adolfo.rafael.martin](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@adolfo.rafael.martin](https://forum.inductiveautomation.com/u/adolfo.rafael.martin)\
**Post date:** [June 20, 2017, 12:22pm UTC](https://forum.inductiveautomation.com/t/deleting-tags-using-xml-import/14564/1 "2017-06-20T12:22:08Z")

</div>

I’ve been successfully creating XML imports to create and modify tags using Ruby scripts.

But, I’ve mistakenly created hundreds of bad tags and folders that I would like to delete.

Is it possible to somehow delete tags using the XML import?

---

<div class="post-metadata">

**Author:** ![zackscriven](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zackscriven/32/7213_2.png) [@zackscriven](https://forum.inductiveautomation.com/u/zackscriven)\
**Post date:** [June 20, 2017, 9:45pm UTC](https://forum.inductiveautomation.com/t/deleting-tags-using-xml-import/14564/2 "2017-06-20T21:45:35Z")

</div>

Short answer is no.

You could export the tags to xml, delete all the tags in the tag provider, remove the ones you don’t want in the xml file, and then re-import.

Or the more powerful way would be to use system.tag.browseTags in combination with system.tag.removeTags to programmatically remove the tags you don’t want. Then you’ll be a wizard Harry.

---

<div class="post-metadata">

**Author:** ![adolfo.rafael.martin](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@adolfo.rafael.martin](https://forum.inductiveautomation.com/u/adolfo.rafael.martin)\
**Post date:** [June 21, 2017, 12:50pm UTC](https://forum.inductiveautomation.com/t/deleting-tags-using-xml-import/14564/3 "2017-06-21T12:50:32Z")

</div>

Ha ha ha; That makes a lot of sense. Thanks for the feedback.
