mqtt-cli
mqtt-cli copied to clipboard
Allow publish with empty payload to delete a retained message
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>)