Add the following into you my.cnf and restart mariaDB
expire_logs_days
expire_logs_days
- Description: Number of days after which the binary log will be automatically removed. By default 0, or no automatic removal. When using replication, should always be set higher than the maximum lag by any slave.
- Commandline:
--expire-logs-days=#
- Scope: Global
- Dynamic: Yes
- Data Type:
numeric
- Default Value:
0
- Range:
0
to
99