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/snapdor/var/cache/snapdfolders are using a lot of storage snap list --allshows 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
-
Open a Terminal.
- On Ubuntu, press
Ctrl+Alt+T. - On other Linux desktops, open your app menu and search for Terminal.
- On Ubuntu, press
-
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.
- Run:
-
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.
- Run this command to remove all disabled revisions automatically:
-
Clear the Snap download cache.
- Run:
sudo rm -rf /var/lib/snapd/cache/* - This deletes cached
.snapfiles that are no longer needed after installation.
- Run:
-
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.
-
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
- Check Snap storage use with:
-
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
- If Snap seems stuck or still reports old data, run:
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.
Fix this automatically with Kudu
Run a free system scan to detect and resolve this issue automatically — no manual steps required.
Download Kudu Free →Related guides
How to Remove App Cache on Linux
Clean application cache on Linux to recover space and reduce clutter using Kudu.
How to Remove APT Cache on Linux
Free up storage by cleaning APT cache files on Linux with Kudu’s cleanup tools.
How to Remove Browser Cache on Linux
Delete browser cache on Linux to free up storage and improve browsing performance with Kudu.
How to Remove DNF Cache on Linux
Delete DNF cache on Linux and reclaim storage space safely using Kudu’s cleanup tools.