← Back to team overview

mosquitto-users team mailing list archive

Re: Removing a retained message from the broker

 

Hi Nicolas,

You can remove retained messages by publishing a zero length retained
message to the topic you wish to clear. For example, you could do it
with mosquitto_pub as follows:

mosquitto_pub -t <topic> -r -n

Cheers,

Roger


References