diff --git a/components/mqtt.rst b/components/mqtt.rst index 8d9030283..753eda26f 100644 --- a/components/mqtt.rst +++ b/components/mqtt.rst @@ -145,6 +145,12 @@ retained messages for you: esphome configuration.yaml clean-mqtt +With Docker: + +.. code-block:: bash + + docker run --rm -v "${PWD}":/config -it esphome/esphome configuration.yaml clean-mqtt + This will remove all retained messages with the topic ``/+/NODE_NAME/#``. If you want to purge on another topic, simply add ``--topic `` to the command.