/var/lib/snapd/snaps/

/var/lib/snapd/snaps/

sudo snap set system refresh.retain=2

LANG=en_US.UTF-8

#!/bin/bash # Removes old revisions of snaps # CLOSE ALL SNAPS BEFORE RUNNING THIS set -eu LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do snap remove "$snapname" --revision="$revision" done

/var/lib/snapd/snaps/

/disabled/

remove-old-snaps

chmod +x remove-old-snaps

sudo

sudo ./remove-old-snaps

$ sudo ./remove-old-snaps atom (revision 223) removed atom (revision 222) removed bitwarden (revision 15) removed bitwarden (revision 16) removed canonical-livepatch (revision 50) removed canonical-livepatch (revision 54) removed chromium (revision 607) removed chromium (revision 660) removed core (revision 6531) removed core (revision 6405) removed core18 (revision 719) removed core18 (revision 731) removed gallery-dl (revision 36) removed gallery-dl (revision 167) removed gimp (revision 110) removed gimp (revision 113) removed