Ubuntu
Removing Snap
First, let’s list all the snaps installed on your system with the following command:
snap list
Let’s also stop snapd (snap daemon) services:
sudo systemctl disable snapd.service
sudo systemctl disable snapd.socket
sudo systemctl disable snapd.seeded.service
Then, remove each Snap. It’s best to do so one-by-one, rather than all in one apt remove line. So something like:
sudo snap remove firefox
sudo snap remove snap-store
sudo snap remove gtk-common-themes
sudo snap remove gnome-3-38-2004
sudo snap remove core18
sudo snap remove snapd-desktop-integration
sudo snap remove firefox
sudo snap remove thunderbird
sudo snap remove ubuntu-app-center
sudo snap remove gtk-common-themes
sudo snap remove gnome-46-2404
sudo snap remove core24
sudo snap remove snapd-desktop-integration
Now, let’s delete any leftover snap cached data:
sudo rm -rf /var/cache/snapd/
Then purge or remove completely snapd using the following command:
sudo apt autoremove --purge snapd
Finally, using purge doesn’t touch your home directory, so you can optionally delete any files previously created in ~/Snap.
To do this, use the following command:
rm -rf ~/snap