MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / journald_clean

Function journald_clean

bleachbit/Unix.py:604–610  ·  view source on GitHub ↗

Clean the system journals

()

Source from the content-addressed store, hash-verified

602
603
604def journald_clean():
605 """Clean the system journals"""
606 try:
607 return run_cleaner_cmd('journalctl', ['--vacuum-size=1'], JOURNALD_REGEX)
608 except subprocess.CalledProcessError as e:
609 raise RuntimeError(
610 f"Error calling '{' '.join(e.cmd)}':\n{e.output}") from e
611
612
613def apt_autoremove():

Callers 1

test_journald_cleanMethod · 0.90

Calls 2

run_cleaner_cmdFunction · 0.85
joinMethod · 0.80

Tested by 1

test_journald_cleanMethod · 0.72