How to Remove Old Snap Revisions on Linux
Delete old Snap revisions on Linux and recover storage space safely with Kudu.
By Kudu Team
Kudu for Linux
See what Kudu cleans on Linux
Kudu lists supported package, app, and browser caches for review before cleaning, and manages XDG autostart entries. A headless agent is available for servers.
Download Kudu Free →How Kudu for Linux worksWhat Causes This?
Snap keeps older package revisions on your Linux system so you can roll back if an update causes problems. Over time, these disabled revisions build up and take unnecessary disk space, especially if you have many Snap apps installed or apps that update often. This is normal behavior, but the retained files can become a storage problem on smaller drives.
Common Symptoms
- Your Linux system is low on disk space for no obvious reason
- The
/var/lib/snapd/snapsfolder is using several GB of storage - You see multiple old revisions listed for the same Snap app
- Disk usage tools show Snap packages taking more space than expected
- You get storage warnings after regular app updates
How to Fix It Manually
-
Open a terminal.
- On Ubuntu and many Linux desktops, press
Ctrl+Alt+T.
- On Ubuntu and many Linux desktops, press
-
List all installed Snap packages and their revisions.
- Run:
snap list --all - Look for entries marked
disabled. These are old revisions that are no longer active and can usually 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 only disabled revisions, not the currently active version of each app.
- Run this command to remove all disabled revisions automatically:
-
Check how much space Snap is using after cleanup.
- Run:
du -sh /var/lib/snapd/snaps - Compare the result to what you had before, if you checked earlier.
- Run:
-
Reduce how many old revisions Snap keeps in the future.
- By default, Snap may retain multiple old revisions.
- To keep only 2 revisions, run:
sudo snap set system refresh.retain=2 - This helps prevent old revisions from piling up again.
-
Verify your current retention setting.
- Run:
snap get system refresh.retain - If it shows
2, Snap will keep fewer old copies going forward.
- Run:
-
Restart Snap apps if needed.
- In most cases, this cleanup does not require a reboot.
- If an app behaves oddly after cleanup, close and reopen it, or restart your system with:
sudo reboot
Important notes
- Do not manually delete files from
/var/lib/snapd/snapsunless you know exactly what you are doing. - Removing disabled revisions is generally safe because they are old rollback copies, not the active app version.
- If you rely on rolling back updates often, consider keeping more than 2 revisions.
Fix It Automatically with Kudu
If you do not want to hunt through package revisions manually, Kudu can help identify wasted storage and clean up unnecessary app files automatically. It is a simple way to recover disk space without digging through terminal output or changing retention settings by hand.

Kudu for Linux
See what Kudu cleans on Linux
Kudu lists supported package, app, and browser caches for review before cleaning, and manages XDG autostart entries. A headless agent is available for servers.
Download Kudu Free →How Kudu for Linux worksRelated guides
How to Remove Old Kernels on Linux
Free up disk space by cleaning old kernel-related leftovers on Linux with help from Kudu.
How to Remove Snap Cache on Linux
Snap downloads, retained revisions, and per-app data have different lifecycles.
How to Remove App Cache on Linux
Apps keep reusable data to avoid downloading or rebuilding it.
How to Remove APT Cache on Linux
APT keeps downloaded package archives for reuse.