Purge logger after 2 days not working?

Hello,

I have the logbook, recorder and logger components in my configuration.yaml:

# View all events in a logbook
logbook:

# recorder
recorder:
  purge_keep_days: 2
  exclude:
    domains:
      - weblink
      - updater
      - device_tracker
      - binary_sensor
    entities:
      - sun.sun # Don't record sun data
      - sensor.yr_symbol
      
# logger
logger:
  default: warning
  logs:
    homeassistant.components.mqtt: debug

This keeps my home assistant db quite small (<100mb), which I like. (snappy history etc)
I added the logger as I would like to see all MQTT messages for debugging.
It is however keeping those messages for longer than 5 days.
So if I want to ctrl+f something, then it is a big mess and I need a lot of time to search.
How can I purge that information after 2 days.
By ‘that information’ I mean the information that appears if I press the info button in HA and then click:
“Press the button to load the full Home Assistant log.”
Both logbook and logger components do not have a purge configuration variable.

How or Can I purge the HA log after 2 days?

- service: system_log.clear

Thanks for thinking along!
Clearing the log removes everything, but I would like to remove stuff older than 2 days…

Not sure it is possible then, but you can adjust the amount of entries in the log (default is 50) so maybe try lowering this amount?

system_log:
  max_entries: MAX_ENTRIES

Default is not 50, maybe for the errors and warnings that are displayed in the info screen (with the HA version number), but not in the full log. My full log is almost crashing my Chrome, as I have many MQTT sensors around the house pushing data to grafana.

You know what, I am about to make some changes tonight.
I therefore used the service: system_log.clear
So that if there is anything that I would like to check in the log it would be accessible and searchable (aka not very big).
I gave it some time and pressed the button to load the full Home Assistant log.
And it is still there… first entry 2018-09-05
How do I really clear the total HA log?
Or purge it after a couple of days…
Should I just delete the log file through samba and reboot?