How to purge the retained MQTT messages?

Tags: #<Tag:0x00007f3274a50110>

Ref this post from 2019:


How to purge the retained messages?

If you have mqtt issues with tasmota devices, you can effectively clear mqtt retain messages with tasmota device manager. Take a look at this https://github.com/jziolkowski/tdm

And if you have other devices and detailed info check out this http://www.steves-internet-guide.com/mqtt-retained-messages-example/

You can also use this:

You purge a retained message by publishing an empty string to the topic as a retained message. It’s as simple as that.

You can do it directly from Developer tools > Services.

In the following screenshot, we are publishing an empty string (represented by two consecutive single quotes) to the topic your/topic/goes/here/ as a retained message (retain: true).

Screenshot from 2021-01-13 21-31-39