Snap is a packaging format developed by canonical to use in Ubuntu and other Linux distros but there are problems with snaps as they are slow compared to native binaries and consume a lot of disk space and the server side of snapcraft is proprietary, but since it’s their own technology canonical is pushing it too much over other solutions in Ubuntu, so for any of the following reasons if you want to uninstall snaps from your system just follow along.
sudo snap remove --purge snap-name
sudo apt remove --purge snapd
sudo rm -rf /var/cache/snapd/ rm -fr ~/snap # for home user sudo rm -fr ~/snap # for root user
sudo apt-mark hold snapd