Clear Snap cache
The Snap cache is stored at "/var/lib/snapd/cache/". Clearing the Snap cache is safe and can be done without causing any issues while running Snap.
The Snap cache is stored at "/var/lib/snapd/cache/". Clearing the Snap cache is safe and can be done without causing any issues while running Snap.
This script removes all disabled Snap packages. Old and unused snaps get "disabled" by Snap. This is due to the snapd that keeps multiple revisions of the same package. Disabled state means that the binaries and services of the snap will no longer be available. But all the data is still available, and the snap can easily be enabled again.