Shell/Bash: uninstaall mongodb from centos7 Example

By

Shell/Bash Example: This is the "uninstaall mongodb from centos7" Example. compiled from many sources on the internet by SimpleTutorials.org

uninstaall mongodb from centos7

1)Stop MongoDB.
Stop the mongod process by issuing the following command:

	sudo service mongod stop
2)Remove Packages.
Remove any MongoDB packages that you had previously installed.

	sudo yum erase $(rpm -qa | grep mongodb-org)

3)Remove Data Directories.

Remove MongoDB databases and log files.

    sudo rm -r /var/log/mongodb
    sudo rm -r /var/lib/mongo


* Summary: This "uninstaall mongodb from centos7" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others