how can i remove second firefox in ubuntu 21.10?
Snaps and traditional DEB files are independent. Uninstalling one doesn't uninstall the other.
If you need to uninstall the default snap Firefox you can either use the Ubuntu Software tool or use a simple command:
sudo snap remove firefox