How to uninstall a package installed from snapcraft?

I used this command line

sudo snap install pwgen-tyhicks

to install pwgen but I can't findout how to use it. So I want to uninstall it. How to uninstall it?


sudo snap remove pwgen-tyhicks

From documentation:

Prior to removal (except on Ubuntu Core systems), a snap’s internal user, system, and configuration data is saved as a snapshot (snapd 2.39+), and retained for 31 days. A snapshot can be used to restore the state of your snap upon reinstallation.