remove mongodb ubuntu version 2020 code example
Example 1: uninstall mongodb ubuntu
sudo apt-get purge mongodb-org*
Example 2: uninstall mongodb ubuntu
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongodb
sudo apt-get purge mongodb-org*
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongodb