xxxxxxxxxx
sudo apt-get purge mongodb mongodb-clients mongodb-server mongodb-dev
sudo apt-get purge mongodb-10gen
sudo apt-get autoremove
xxxxxxxxxx
//To uninstall mongodb.
sudo apt-get purge mongodb-org*
//To remove mongodb Completely.
sudo apt-get install mongodb-org --fix-missing --fix-broken
sudo apt-get autoremove mongodb-org --fix-missing --fix-broken
xxxxxxxxxx
1. Open the Control Panel on your Windows machine.
2. Click on "Uninstall a program" or "Programs and Features" (depending on your version of Windows).
3. From the list of installed programs, find MongoDB and right-click on it.
4. Select "Uninstall" or "Remove" from the context menu.
5. Follow the prompts to complete the uninstallation process.