# Dynamic subscription unsubscribe-from-all (and docs)

**URL:** https://discourse.nodered.org/t/dynamic-subscription-unsubscribe-from-all-and-docs/67675
**Category:** Feature Requests
**Tags:** mqtt
**Created:** [14 September 2022 06:07 UTC](https://discourse.nodered.org/t/dynamic-subscription-unsubscribe-from-all-and-docs/67675 "2022-09-14T06:07:11Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [14 September 2022 06:43 UTC](https://discourse.nodered.org/t/dynamic-subscription-unsubscribe-from-all-and-docs/67675/2 "2022-09-14T06:43:06Z")

</div>

> [@tymarbut](#):
>
> I'm hoping there's a way to tell an MQTT In node to unsubscribe from all topics it's currently subscribed to

Set...

- `msg.action`: "unsubscribe"
- `msg.topic`: true

> [@tymarbut](#):
>
> That would be very helpful, rather than maintaining my own list of the previously-subscribed topics.

You can send an `action` of `"getSubscriptions"` then use the result to unsubscribe.

Demos on forum...

- A clean simple demo: [Dynamic MQTT node's "actions-\>connect" guidance needed - #2 by Steve-Mcl](https://discourse.nodered.org/t/dynamic-mqtt-nodes-actions-connect-guidance-needed/58878/2)
- A full demo including "unsubscribe all" & "get subscriptions": [Dynamic MQTT LWT birth, Close & Will Property - #2 by Steve-Mcl](https://discourse.nodered.org/t/dynamic-mqtt-lwt-birth-close-will-property/58951/2)

> [@tymarbut](#):
>
> And are there any plans for updating the node info that displays in the info panel at the right? There's no info displayed currently,

There is info...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/ae461b7c93d9ae05a21ad610fb69929b83804cf2.png)  
... however, as always, it could be improved.

Pull Requests are welcome (for both the nodes built in documentation and for the node-red website 🙂

---

_[View the full topic](https://discourse.nodered.org/t/dynamic-subscription-unsubscribe-from-all-and-docs/67675)._
