how to uninstall programs using snap code example
Example 1: remove snap package
sudo snap remove <package name>
Example 2: snap uninstall
sudo snap remove packageName
sudo snap remove <package name>
sudo snap remove packageName