how to uninstall mongodb in ubuntu 1

how to uninstall mongodb in ubuntu

sudo apt-get purge mongodb-org*

Here is what the above code is Doing:
1. Importing the os module
2. Setting the working directory to the location of the script
3. Importing the subprocess module
4. Setting the command to be executed to a variable
5. Executing the command

Similar Posts