Safe to Delete

Linux Systemd Core Dump Storage (/var/lib/systemd/coredump)

Quick Answer: /var/lib/systemd/coredump stores uncompressed binary process memory crash dumps. Purging core dumps via coredumpctl is 100% safe.

Bottom Line: It is 100% safe to delete binary core dump files in /var/lib/systemd/coredump. Running coredumpctl purge will NOT affect active Linux services or system processes.


What is the coredump Storage Folder?

Located at /var/lib/systemd/coredump on Linux distributions using systemd, this directory stores binary core dumps generated when applications segfault or crash.

When a C/C++, Rust, or Go process crashes unexpectedly, systemd captures the full RAM memory state of the crashing process into a compressed .zst or .lz4 file (e.g. core.nginx.1000...zst).

If a service enters a crash loop (such as a misconfigured Nginx worker or C++ game server), core dumps hoard 5 GB to 30 GB+ of drive space.


Can You Delete Systemd Core Dumps?

✅ Yes, it is completely safe to delete.

  • Pure developer diagnostics: Core dump files are only needed if you plan to debug crashing binaries using gdb or lldb.
  • No server impact: Deleting core dumps reclaims space without affecting system stability.

How to Safely Clean Up Systemd Core Dumps

  1. Open your Linux terminal.
  2. Purge all stored core dump files:
    sudo coredumpctl purge

Method 2: Limit Storage in coredump.conf

To limit core dump storage to 500 MB, edit /etc/systemd/coredump.conf:

[Coredump]
MaxUse=500M

Discussion

Loading authentication...

Related in linux

Linux Audit Framework Log Directory (/var/log/audit)

The Linux auditd service records security events, file access traces, and user commands in /var/log/audit. Learn how to clean auditd log files safely.

Safe to Delete

Fail2ban Ban History Database (/var/lib/fail2ban/fail2ban.sqlite3)

Fail2ban intrusion prevention daemon logs banned IP addresses and SSH brute-force attempts in fail2ban.sqlite3. Clearing Fail2ban database is safe.

Safe to Delete

GNOME Desktop File Indexer Database (~/.local/share/tracker/data)

GNOME Tracker caches desktop search index databases. Resetting the tracker database is safe.

Safe to Delete
Back to all files