# Automatic removal of Bad\_Stale Tags on MQTT Engine Host Client when removed from MQTT Transmission client?

**URL:** <https://forum.inductiveautomation.com/t/automatic-removal-of-bad-stale-tags-on-mqtt-engine-host-client-when-removed-from-mqtt-transmission-client/55613>\
**Category:** Ignition\
**Created:** [February 1, 2022, 4:25pm UTC](https://forum.inductiveautomation.com/t/automatic-removal-of-bad-stale-tags-on-mqtt-engine-host-client-when-removed-from-mqtt-transmission-client/55613 "2022-02-01T16:25:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerry\_Dion](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@Gerry\_Dion](https://forum.inductiveautomation.com/u/Gerry_Dion)\
**Post date:** [February 1, 2022, 4:25pm UTC](https://forum.inductiveautomation.com/t/automatic-removal-of-bad-stale-tags-on-mqtt-engine-host-client-when-removed-from-mqtt-transmission-client/55613/1 "2022-02-01T16:25:25Z")

</div>

Running MQTT Transmission on a raspberry pi, publishing to an Eclipse Mosquitto MQTT broker with another raspberry pi running MQTT Engine subscribing to the broker. (bench testing)

With the creation of a new tag and a refresh on the raspberry pi running the MQTT Transmission module we see successful population of the tag on the MQTT Engine host client. But on the contrary, when removing a tag from the tag tree on the MQTT Transmission raspberry pi, we see a bad\_stale value for that tag on the MQTT Engine host client instead of the tags removal…

Is there a possibility for automatic removal of tags if they have been removed from the edge transmission client or is that something the host client will need to manually delete?

---

<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:** [February 1, 2022, 4:42pm UTC](https://forum.inductiveautomation.com/t/automatic-removal-of-bad-stale-tags-on-mqtt-engine-host-client-when-removed-from-mqtt-transmission-client/55613/2 "2022-02-01T16:42:07Z")

</div>

Seems like Cirrus Link had this in their backlog at some point: [MQTT Engine: auto-prune removed metrics? - #2 by wes0johnson](https://forum.inductiveautomation.com/t/mqtt-engine-auto-prune-removed-metrics/46785/2)

Not sure what the current status is. @wes0johnson ?

---

<div class="post-metadata">

**Author:** ![wes0johnson](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@wes0johnson](https://forum.inductiveautomation.com/u/wes0johnson)\
**Post date:** [February 2, 2022, 3:54pm UTC](https://forum.inductiveautomation.com/t/automatic-removal-of-bad-stale-tags-on-mqtt-engine-host-client-when-removed-from-mqtt-transmission-client/55613/3 "2022-02-02T15:54:52Z")

</div>

This is still a backlog item that has not been prioritized yet. As noted in the other thread, this can/must be done either manually (or via script).

---

<div class="post-metadata">

**Author:** ![Gerry\_Dion](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@Gerry\_Dion](https://forum.inductiveautomation.com/u/Gerry_Dion)\
**Post date:** [February 2, 2022, 4:42pm UTC](https://forum.inductiveautomation.com/t/automatic-removal-of-bad-stale-tags-on-mqtt-engine-host-client-when-removed-from-mqtt-transmission-client/55613/4 "2022-02-02T16:42:18Z")

</div>

Thanks for the info. Much appreciated.

---

<div class="post-metadata">

**Author:** ![bas.dejong](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@bas.dejong](https://forum.inductiveautomation.com/u/bas.dejong)\
**Post date:** [September 24, 2024, 2:01pm UTC](https://forum.inductiveautomation.com/t/automatic-removal-of-bad-stale-tags-on-mqtt-engine-host-client-when-removed-from-mqtt-transmission-client/55613/5 "2024-09-24T14:01:44Z")

</div>

Is there un update on this @wes0johnson ? When scalling Ignition MQTT  
Infrastructure into a UNS with 100 000+ tags this starts to become an uncomfortable issue.

---

<div class="post-metadata">

**Author:** ![wes0johnson](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@wes0johnson](https://forum.inductiveautomation.com/u/wes0johnson)\
**Post date:** [September 24, 2024, 4:47pm UTC](https://forum.inductiveautomation.com/t/automatic-removal-of-bad-stale-tags-on-mqtt-engine-host-client-when-removed-from-mqtt-transmission-client/55613/6 "2024-09-24T16:47:13Z")

</div>

This is still in our backlog and may be addressed in the next iteration of Sparkplug. Until then, it is unlikely it will be something we add support for in MQTT Engine.

I should note that we recently added native UNS support to MQTT Engine. It provides a 'Delete UNS Tags' boolean tag that serves this purpose:

[https://docs.chariot.io/display/CLD80/Using+MQTT+Modules+to+map+ISA+95+Enterprise+Structure+in+a+UNS+Architecture](https://docs.chariot.io/display/CLD80/Using+MQTT+Modules+to+map+ISA+95+Enterprise+Structure+in+a+UNS+Architecture)
