How to clear embedded MQTT broker database?

I suggest using MQTT Explorer. It displays all topics in a tree-view. If a topic has a retained message, a red RETAINED button appears. Click it and the retained message will be deleted. The topic will continue to be displayed in the tree-view and will only disappear after you disconnect/re-connect with MQTT Explorer.

7 Likes