Safe to Delete

Flatpak Package Cache & Unused Runtimes (/var/lib/flatpak)

Quick Answer: /var/lib/flatpak stores Flatpak desktop apps and runtimes. Pruning unused runtimes with flatpak uninstall --unused is safe and frees space.

Bottom Line: You can safely prune unused Flatpak runtimes using flatpak uninstall --unused. Doing so will not break your active Flatpak applications or erase your personal app settings.


What is the Flatpak Storage Folder?

Located system-wide at /var/lib/flatpak (or per-user at ~/.local/share/flatpak), this directory stores applications and shared runtime libraries installed via Flatpak (used across Fedora, Ubuntu, Arch, SteamOS, and Linux Mint).

Because Flatpak apps run in sandboxed containers, they rely on shared runtime environments (such as GNOME or KDE runtimes). When you update or uninstall a Flatpak application, older runtime versions often remain orphaned on your hard drive, taking up 2 GB to 15 GB+.


Can You Delete Unused Flatpaks?

  • Pruning unused runtimes via flatpak uninstall --unused:100% safe.
  • Manually deleting /var/lib/flatpak in file manager: ⚠️ Do NOT delete manually. Wiping the directory manually will corrupt your Flatpak installation database.

How to Safely Clean Up Flatpak Storage

Open your Linux terminal and run:

flatpak uninstall --unused

What this command does: It scans all installed Flatpak apps and removes any underlying framework runtimes or SDKs that are no longer required by any active application.

Method 2: Clear Flatpak Temporary Download Cache

To delete leftover temporary installation archives:

rm -rf ~/.local/share/flatpak/repo/tmp/*

Discussion

Loading authentication...

Related in installers

Ubuntu APT Package Cache (/var/cache/apt/archives)

/var/cache/apt/archives stores downloaded .deb package installer files. Running sudo apt clean is safe and reclaims gigabytes of disk space.

Safe to Delete

Panther Folder (C:\$WINDOWS.~BT\Sources\Panther)

The Panther folder stores setup and upgrade log files for Windows installation. Deleting Panther is safe and frees up hidden upgrade logs.

Safe to Delete

Ubuntu Snap Package Cache (/var/lib/snapd/snaps)

/var/lib/snapd/snaps stores old disabled versions of Snap packages. Removing old revisions is safe and frees up gigabytes on Ubuntu.

Safe to Delete
Back to all files