Snap remove permission denied

How do I remove a snap no a multi-user system? For some reason snap seems to be connected to the “first” user in alphabetical order, and when performing snap remove firefox for example, I receive a permission denied error pertaining to another user’s snap folder.

How to resolve?

If you want to remote snap package for specific user then run command

sudo snap remove --user=username firefox

here username is the name of that specific user.

If you want to remove snap package for all user than run command:

sudo snap remove firefox