# system.tag.removeTag doesn't remove tag

**URL:** <https://forum.inductiveautomation.com/t/system-tag-removetag-doesnt-remove-tag/29580>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [October 31, 2019, 7:45pm UTC](https://forum.inductiveautomation.com/t/system-tag-removetag-doesnt-remove-tag/29580 "2019-10-31T19:45:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbwhitmire0113](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@jbwhitmire0113](https://forum.inductiveautomation.com/u/jbwhitmire0113)\
**Post date:** [October 31, 2019, 7:45pm UTC](https://forum.inductiveautomation.com/t/system-tag-removetag-doesnt-remove-tag/29580/1 "2019-10-31T19:45:43Z")

</div>

Hello All,  
I am trying to remove a UDT tag via script after copying the data from the original tag and copying to the new tag. New tag is added correctly, but system.tag.removeTag doesn’t remove the original tag. Path is valid. The except portion never fires.

code snippet below:

path = ‘[default]%s’%(event.source.parent.Ticket)

try:  
system.tag.removeTag(path)  
except:  
system.gui.errorBox(" Failed to delete tag %s",path)
