Skip to content

Free up Disk Space

If your disk fills up, there are many ways to regain free space:

1. Empty the trash

Files in the trash can pile up over time. Empty it to recover space:

  1. Launch Dolphin.
  2. Click Trash in the sidebar on the left.
  3. Click Empty Trash in the toolbar.

2. Uninstall unused apps

Some apps can be quite large. Uninstall any that you don’t need:

  1. Launch Discover.
  2. Click Installed in the sidebar on the left.
  3. Click Sort: in the toolbar and select Size.
  4. Click a large app you don’t need anymore.
  5. Click Remove.

3. Delete unused Flatpak runtimes

Flatpak runtimes that are no longer used by any apps sometimes stick around for no good reason.

To remove them, use a terminal window to run flatpak uninstall --unused.

4. Delete unused files

  1. Install Filelight.
  2. Launch Filelight.
  3. Click Choose Folder….
  4. Click Home in the sidebar on the left, then click Open.
  5. Use the list or map view to find large files or folders you don’t need anymore. When you find something, right-click it and select Delete.

Disk Usage Analyzer and KDiskFree can also be used for this purpose.

5. Prune uneeded snapshots

Snapshots of older versions of files can consume a significant amount of space. If you have a recent off-device backup, these snapshots are safe to prune. Learn how here.

6. Clear caches

Cache files speed up apps, but can consume a significant amount of space. They are safe to remove, but will cause some apps to perform more slowly until they are regenerated.

To remove miscellaneous cache files, use a terminal window to run rm -r ~/.cache/*.

7. Clear logs and crash debugging data

Log files logs and crash dump debugging data is cleaned up automatically, but can still pile up in the interim. If you don’t need them for system troubleshooting purposes, they are safe to remove.

To do so, use a terminal window to run the following commands:

  1. Remove older log files: run0 journalctl --vacuum-time=2d
  2. Remove crash dump debugging data: run0 systemd-tmpfiles --clean

Article contributed by under the CC-BY-4.0 license.