Thursday, October 6, 2016

Uninstalling MongoDB from ubuntu


Uninstalling MongoDB from Ubuntu Step-Wise


Open Terminal in ubuntu using Ctrl+Alt+T.
Run the below commands :

  • sudo service mongod stop
  • sudo apt-get purge mongodb-org*
  • sudo rm -r /var/log/mongodb
  • sudo rm -r /var/lib/mongodb


The above commands will remove the MongoDB installation from ubuntu.

For Reinstalling MongoDB Please refer : Installing MongoDB in Ubuntu.




No comments:

Post a Comment