Details
-
Task
-
Resolution: Won't Do
-
Major - P3
-
None
-
debian/ubuntu mongodb uninstall process
*Location*: https://docs.mongodb.com/master/tutorial/install-mongodb-on-ubuntu/?_ga=1.138304056.909293321.1487318677
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
*Screen Resolution*: 1680 x 1050
debian/ubuntu mongodb uninstall process *Location*: https://docs.mongodb.com/master/tutorial/install-mongodb-on-ubuntu/?_ga=1.138304056.909293321.1487318677 *User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 *Screen Resolution*: 1680 x 1050
Description
Hi!
on the delete instructions may be you should warn the directories shown are the defaults, the user may have changed them using /etc/mongod.conf file.
Why not to let the user check with something like this?
grep dbPath /etc/mongod.conf # database directory
grep path /etc/mongod.conf # log directory
then config these lines with appropriate directories:
sudo rm -r /var/lib/mongodb # Remove Data Directory
sudo rm -r /var/log/mongodb # Remove MongoDB log files.
Note these checks should be done before the apt-get remove/purge command.