# Tag provider module doesn't remove folders on shutdown

**URL:** <https://forum.inductiveautomation.com/t/tag-provider-module-doesnt-remove-folders-on-shutdown/40082>\
**Category:** Ignition\
**Created:** [October 28, 2020, 6:22am UTC](https://forum.inductiveautomation.com/t/tag-provider-module-doesnt-remove-folders-on-shutdown/40082 "2020-10-28T06:22:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cleye.jensen](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@cleye.jensen](https://forum.inductiveautomation.com/u/cleye.jensen)\
**Post date:** [October 28, 2020, 6:22am UTC](https://forum.inductiveautomation.com/t/tag-provider-module-doesnt-remove-folders-on-shutdown/40082/1 "2020-10-28T06:22:37Z")

</div>

I’ve developed a managed tag provider using Ignition SDK (based on [ignition-sdk-examples/managed-tag-provider at master · inductiveautomation/ignition-sdk-examples · GitHub](https://github.com/inductiveautomation/ignition-sdk-examples/tree/master/managed-tag-provider)) and in the shutdown function there is the line:

`managedProvider.shutdown(true);`

which according to the docs:

void shutdown(boolean delete)  
Shuts down and removes the provider. If delete is true, will remove all stored data for the provider.

The issue I’m having is that whenever I restart or reinstall the tag provider module, all the tags are deleted however all the folders and the entire folder structure remains.

For example when I ran the initial example from the github repo above, it created a folder called “Custom Tags” and despite completely removing any reference of that from my code it is still present even after restarting the module many times.

![Capture5](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2bdfa52421b5244385dbbd957b809b451666911c.png)

I can’t right click and delete and I’ve tried using the scripting API’s system.tag.deleteTags, and heaps of other SDK functions to delete the tags but it’s not working.

Any help would be much appreciated

---

<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:** [October 28, 2020, 3:16pm UTC](https://forum.inductiveautomation.com/t/tag-provider-module-doesnt-remove-folders-on-shutdown/40082/2 "2020-10-28T15:16:26Z")

</div>

What Ignition version is this? I see an internal ticket (due to be fixed in 8.1.1) about managed tag providers not respecting the delete flag. It doesn’t _quite_ line up with what you’re describing, but it’s possible it’s the same root cause.

---

<div class="post-metadata">

**Author:** ![cleye.jensen](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@cleye.jensen](https://forum.inductiveautomation.com/u/cleye.jensen)\
**Post date:** [October 28, 2020, 11:29pm UTC](https://forum.inductiveautomation.com/t/tag-provider-module-doesnt-remove-folders-on-shutdown/40082/3 "2020-10-28T23:29:09Z")

</div>

That’s good to hear. I’m using version 8.1.0-rc2
