Created
June 13, 2018 13:25
Clean disabled snap apps
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
#!/bin/sh | |
set -eu | |
snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
sudo snap remove "$snapname" --revision="$revision" | |
done | |
#observation: I copied this script from another person but i don't remember where. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment