Skip to main content

Timeline for How to clear journalctl

Current License: CC BY-SA 4.0

10 events
when toggle format what by license comment
Mar 30, 2023 at 14:44 comment added EkriirkE On Arch, the vacuum options cleared some intermediary stuff, but the log was always full of stuff from months ago sans the recent stuff. This is the only answer that truly cleared journalctl out
Mar 15, 2021 at 16:00 comment added Dweia This seems to be the only working command from all the answers here, at least for Ubuntu 18.04. 3 GB of /var/log/journal/* from about 3 years were removed by none of the "vacuum" variants mentioned in other answerd
Dec 26, 2019 at 13:42 comment added 0x777C Some programs do not handle their logs properly and this may break them
Sep 26, 2019 at 10:43 comment added Kevin Lyda This is the currently correct answer. It would be nice if the journalctl command could do this but it appears unable.
S Nov 27, 2018 at 11:55 history edited Jeff Schaller CC BY-SA 4.0
left the sudo in; the original showed as two lines, which is easier to read
S Nov 27, 2018 at 11:55 history suggested T.Todua CC BY-SA 4.0
made one-line
Nov 27, 2018 at 10:50 review Suggested edits
S Nov 27, 2018 at 11:55
Feb 12, 2018 at 18:23 comment added Synchro On Debian Jessie, the path is /run/log.
Dec 30, 2016 at 22:11 review First posts
Dec 30, 2016 at 23:08
Dec 30, 2016 at 22:08 history answered Matt CC BY-SA 3.0