[SOLVED] Mosquitto and known_devices.yaml

Hello everyone,

This is my first day with hass …

For a few hours I’m trying to “clean” the retained messages stored in mosquitto.
Mosquitto keeps firing the retained messages from my previous tests with owntracks (which is normal) and as I unserstood, hass adds known devices based on the topics it discovers after a restart.
So even though I deleted the devices in the yaml files they reappears after a hass restart. (and multiple badges show up on the frontend)

How can I get rid of those retained messages ?
I deleted the devices in known_devices.yaml and restarted mosquitto
I tried from the ssh client on the core image : message_pub -t ‘mytopic/subtopic’ -r -n => connection refused.

The mosquitto config is basic :
“plain”: true,
“ssl”: false,
“anonymous”: true,
“logins”: [],
“customize”: {
“active”: true,
“folder”: “mosquitto”
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”

and nothing fancy in the /share/customized.conf

Can you please help me on this ?

Thank you very much

OMG it looks like I needed a break. It was obvious.

message_pub -t ‘mytopic/subtopic’ -r -n -h IP_ADDRESS and it works.