# Tag Browser tree shows deleted folder structure

**URL:** <https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434>\
**Category:** Ignition\
**Tags:** ignition80, database\
**Created:** [November 9, 2020, 5:57am UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434 "2020-11-09T05:57:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssatonkar](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@ssatonkar](https://forum.inductiveautomation.com/u/ssatonkar)\
**Post date:** [November 9, 2020, 5:57am UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/1 "2020-11-09T05:57:36Z")

</div>

Hi,  
I have scenario where I am enabling history for set of tags. However when I delete unwanted tag folders (History Enabled) from tag browser it still shows these folders in Tag Browser Tree.

How can I remove these unwanted folders from Tag Browser Tree.

Please help me on this topic

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [November 9, 2020, 9:12pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/2 "2020-11-09T21:12:48Z")

</div>

We need some more information before we can help. What Ignition version is this? Are the deleted folders still present if you close and reopen the Designer?

---

<div class="post-metadata">

**Author:** ![Devin](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@Devin](https://forum.inductiveautomation.com/u/Devin)\
**Post date:** [November 10, 2020, 5:33pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/3 "2020-11-10T17:33:35Z")

</div>

I’m having a similar issue, where both the Tag Browse Tree in historical mode, and the system.tag.browseHistoricalTags function are pulling tags/folders that were deleted. The deleted tags were indeed being historized before they were deleted, but now no longer exist. Not only is it for tags that have been deleted, but also for tags that have been renamed. It is still showing the old naming/tag path, as well as the new.

I am using Internal Historian, Ignition Version 8.0.16.

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [November 10, 2020, 9:17pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/4 "2020-11-10T21:17:52Z")

</div>

It looks like we have a bug report open for this. I added this forum post to that bug report, to help keep track of who is affected by this.

---

<div class="post-metadata">

**Author:** ![ssatonkar](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@ssatonkar](https://forum.inductiveautomation.com/u/ssatonkar)\
**Post date:** [December 2, 2020, 1:04pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/5 "2020-12-02T13:04:03Z")

</div>

It can be solved by deleting rows in historical table for tags which you do not want to show.

---

<div class="post-metadata">

**Author:** ![Devin](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@Devin](https://forum.inductiveautomation.com/u/Devin)\
**Post date:** [December 2, 2020, 5:58pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/6 "2020-12-02T17:58:10Z")

</div>

I’m using an Internal Historian, and unless I’m missing something, I don’t believe there is a way to do this.

---

<div class="post-metadata">

**Author:** ![jakub.moric](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jakub.moric](https://forum.inductiveautomation.com/u/jakub.moric)\
**Post date:** [February 15, 2021, 12:01pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/7 "2021-02-15T12:01:34Z")

</div>

Do we have some update about this iam facing same problem

---

<div class="post-metadata">

**Author:** ![gilles.levesque](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gilles.levesque](https://forum.inductiveautomation.com/u/gilles.levesque)\
**Post date:** [October 19, 2021, 1:24pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/8 "2021-10-19T13:24:22Z")

</div>

Any update? i am having the same problem with ignition 8.1.9.

---

<div class="post-metadata">

**Author:** ![Travis\_T](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Travis\_T](https://forum.inductiveautomation.com/u/Travis_T)\
**Post date:** [May 3, 2022, 5:51pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/9 "2022-05-03T17:51:15Z")

</div>

Having this issue with Ignition 8.1.14.Any update on this or a link to the bug report for this issue?

---

<div class="post-metadata">

**Author:** ![alex.chmelka](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alex.chmelka/32/26672_2.png) [@alex.chmelka](https://forum.inductiveautomation.com/u/alex.chmelka)\
**Post date:** [September 20, 2022, 2:31pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/10 "2022-09-20T14:31:22Z")

</div>

Having this issue as well. I went and deleted every row of historical data for these tags as well. Still show up in the tag browser tree. My next step would be to delete the tag id as well. Version is 8.1.7.

UPDATE:

After some further digging, it appears the issue is that the tag id never got retired when the tag was deleted. Manually updating the retired time with an UPDATE query resolved it. The backend of the tag browser tree must filter by only grabbing tag IDs that have NULL as a retire date. I assume Ignition should be retiring tags automatically on an event of a tag being deleted though?

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 20, 2022, 3:06pm UTC](https://forum.inductiveautomation.com/t/tag-browser-tree-shows-deleted-folder-structure/40434/11 "2022-09-20T15:06:53Z")

</div>

> [@alex.chmelka](#):
>
> I assume Ignition should be retiring tags automatically on an event of a tag being deleted though?

I believe technically it is any time a tag's history is disabled, which should include deleting the tag.

There was a bug, at least in 7.9 where tag's weren't properly retired. I'm not sure if/when that was resolved though.
