hivemq / mqtt-cli

MQTT CLI is a useful command line interface for connecting various MQTT clients supporting MQTT 5.0 and 3.1.1
https://hivemq.github.io/mqtt-cli/
Apache License 2.0
310 stars 47 forks source link

Allow publish with empty payload to delete a retained message #301

Closed ridomin closed 1 year ago

ridomin commented 2 years ago

Delete a retained message

Reading in https://www.hivemq.com/blog/mqtt-essentials-part-8-retained-messages/ the only way to delete a retained message is by publishing another message to the same topic with an empty payload.

When running pub -t topic -m "" I got

Missing required parameter for option '--message' (<message>)