I can confirm that none of this actions clear the logs (restart or reboot). Also, analyzing the source code of the supervisor gives some clue to where those logs are stored, but it seems that they are taken from the docker engine - which would retrieve only the last log available.
So, it would be very good to know where those files are stored (to wipe them out) or to have a “Clear logs” button for that on the add-ons UI for the specific add-on chosen.
UPDATE: after posting here, I decided to test some hypothesis using xAI Grok and we found that the logs for add-ons are stored using journald. So, to confirm that, one can run this:
journalctl CONTAINER_NAME=<container name>
Where “container name” is the name given by “docker ps” command. Of course: one must have access to HAOS shell to do that.
So, to clean up some entries, just execute:
journalctl --vacuum-time=<n> -t <container name>
Where “n” can be given in hours (like “24h”) or days (“1d”).
But even knowing all of this, it would still be nice to have a button on the UI to clear the logs for add-ons.