How to Remove Snap Cache on Linux

Delete old Snap cache and revisions on Linux to recover space with help from Kudu.

By Kudu Team

Fix this automatically with Kudu

Run a free system scan to detect and resolve this issue automatically — no manual steps required.

Download Kudu Free →

What Causes This?

Snap keeps older package revisions and downloaded .snap files in its cache so apps can roll back if an update causes problems. Over time, these old revisions and cached downloads can pile up, especially on systems with many Snap apps or frequent updates. The result is wasted disk space that Linux does not always reclaim automatically.

Common Symptoms

  • Your Linux system is low on disk space for no obvious reason
  • The /var/lib/snapd or /var/cache/snapd folders are using a lot of storage
  • snap list --all shows multiple disabled old revisions of the same app
  • Software updates complete, but storage usage keeps growing
  • You get warnings about insufficient space during installs or updates

How to Fix It Manually

  1. Open a Terminal.

    • On Ubuntu, press Ctrl+Alt+T.
    • On other Linux desktops, open your app menu and search for Terminal.
  2. Check which old Snap revisions are installed.

    • Run:
      snap list --all
    • Look for entries marked disabled. These are usually older revisions that can be removed safely.
  3. Remove old disabled Snap revisions.

    • Run this command to remove all disabled revisions automatically:
      snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do
        sudo snap remove "$snapname" --revision="$revision"
      done
    • Enter your password if prompted.
    • This removes outdated package versions but keeps the current installed version.
  4. Clear the Snap download cache.

    • Run:
      sudo rm -rf /var/lib/snapd/cache/*
    • This deletes cached .snap files that are no longer needed after installation.
  5. Reduce how many old revisions Snap keeps in the future.

    • By default, Snap may retain multiple old revisions.
    • Set it to keep only 2 revisions:
      sudo snap set system refresh.retain=2
    • This helps prevent the cache from growing as quickly after future updates.
  6. Verify how much space you recovered.

    • Check Snap storage use with:
      du -sh /var/lib/snapd
      du -sh /var/lib/snapd/cache
    • You can also check overall free space with:
      df -h
  7. Restart Snap services if needed.

    • If Snap seems stuck or still reports old data, run:
      sudo systemctl restart snapd
    • Then check again with:
      snap list --all

Fix It Automatically with Kudu

Kudu can scan your system for leftover cache, outdated app data, and other storage waste so you do not have to dig through terminal commands manually. It makes cleanup faster and helps prevent space issues from building up again, especially if you manage multiple apps and package systems.

Download Kudu Free →

Fix this automatically with Kudu

Run a free system scan to detect and resolve this issue automatically — no manual steps required.

Download Kudu Free →