Clear Journald Logs
Journalctl can accumulate a lot of system logs over time being, we can clear the logs using --vacuum-time or --vacuum-size argument.
Clear Logs by Time
Only retain last 3 days of logs:
journalctl --vacuum-time=3dClear Logs by Size
Only retain 1 GB of logs:
journalctl --vacuum-size=1GSet Max Log Size
You can configure the max log size in /etc/systemd/journald.conf:
SystemMaxUse=1GThen restart the journald service:
systemctl restart systemd-journaldLast updated