This tutorial will help you to remove mongoDB application from your system But remember, before removing mongoDB from your device you must take the backup of your mongoDB data because this process is irreversible.
You can follow given below step by step methods to uninstall MongoDB.
First, you must stop the `mongod`
process in your system to completely uninstall the mongoDB:
Open the terminal and run the command:
sudo service mongod stop
Using the given below command will completely remove the MongoDB packages from your system.
sudo apt-get purge mongodb-org*
In this step, we are going to tell you how to remove the mongoDB logs. We must know the mongoDB log location before removing them. MongoDB logs are kept inside /var/log/mongodb/
.
sudo rm -r /var/log/mongodb
Given above command will remove the logs and its associated sub-directories.
In this final step, we will remove the MongoDB from ubuntu from the following location /var/lib/mongodb/
. However, if you have set MongoDB in any other location then you can pass your MongoDB location along with the remove command:
sudo rm -r /var/lib/mongodb
In this MongoDB tutorial, we have learn to remove MongoDB from ubuntu. I hope this tutorial must have helped you. If this tutorial really helped you to delete MongoDB then you should share it with others as well.
To know more about MongoDB you can visit MongoDB website.
In this post, we will learn how to work with HTTP requests in the Redux…
MySQL is a relational database management system based on SQL – Structured Query Language, and…
React Js Handle Rest API data globally with Context and useState hook tutorial. In this…
Node js delete data from MySQL database tutorial; Throughout this guide, you will ascertain how…
In this tutorial, you will discover how to import CSV file into MySQL database using…
React Js Global state management with createContext hook example; In this tutorial, we will help…