notes
- create new file
clean-snap.sh
#!/bin/bash
set -eu snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do snap remove "$snapname" --revision="$revision" done ```
- run
sudo bash clean-snap.sh
notes
clean-snap.sh
#!/bin/bash
set -eu snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do snap remove "$snapname" --revision="$revision" done ```
sudo bash clean-snap.sh