Created
October 6, 2023 21:07
-
-
Save mortn/ef45d5f9ac2d41bb72a1162b52d6a95e to your computer and use it in GitHub Desktop.
Clean up old Snap revision
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do sudo snap remove "$snapname" --revision="$revision"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment