# \[BUG-14638\] ManagedTagProvider.shutdown method does not seem to work

**URL:** <https://forum.inductiveautomation.com/t/bug-14638-managedtagprovider-shutdown-method-does-not-seem-to-work/27107>\
**Category:** Module Development\
**Tags:** ignition80\
**Created:** [August 2, 2019, 8:55am UTC](https://forum.inductiveautomation.com/t/bug-14638-managedtagprovider-shutdown-method-does-not-seem-to-work/27107 "2019-08-02T08:55:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogini\_Marathe](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yogini\_Marathe](https://forum.inductiveautomation.com/u/Yogini_Marathe)\
**Post date:** [August 2, 2019, 8:55am UTC](https://forum.inductiveautomation.com/t/bug-14638-managedtagprovider-shutdown-method-does-not-seem-to-work/27107/1 "2019-08-02T08:55:42Z")

</div>

I am using ManagedTagProvider to create custom Tag provider as below from the module :

```auto
ProviderConfiguration config = new ProviderConfiguration(_providerName)
					.setAllowTagCustomization(true)
					.setPersistTags(false)
					.setPersistValues(false);

ManagedTagProvider newProvider = gatewayContext.getTagManager().getOrCreateManagedProvider(config);
			

```

Once created, we create tags under this provider and update tag values from a scheduled task from the module.

I have following code in the GatewayHook -\> moduleRemoved to cleanup the tag providers created by the module when module is uninstalled:

```auto
newProvider .shutdown(true);

```

We expect that tag provider and all tags below this provider would be deleted.

I see following statement in the wrapper.log  
provider 02Aug2019 14:17:26 Tag provider stopped.  
However the provider is still seen from the designer. Relaunching the designer also shows the provider.

In 7.9 , SimpleTagProvider.shutdown removes the tag provider.  
Am I missing something here ? Do I need to call any other method than shutdown to remove the tagprovider ?

Ignition version : 8.0.3-rc2 (b2019072512)  
Ignition SDK version: 8.0.0

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 5, 2019, 2:04pm UTC](https://forum.inductiveautomation.com/t/bug-14638-managedtagprovider-shutdown-method-does-not-seem-to-work/27107/2 "2019-08-05T14:04:19Z")

</div>

Thanks, I’ll make a ticket for this.
