Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

snap remove all disabled

# remove all disabled snaps 
LANG=C snap list --all | while read snapname ver rev trk pub notes; do if [[ $notes = *disabled* ]]; then sudo snap remove "$snapname" --revision="$rev"; fi; done
# free up space 
sudo du -sh /var/lib/snapd/cache/        # Get used space
sudo rm --force /var/lib/snapd/cache/*  # Remove cache
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #snap #remove #disabled
ADD COMMENT
Topic
Name
9+2 =