Uninstalling MongoDB
- Go to the tool directory.
cd /home/tsdbtool
- Run the uninstallation command.
sh tsdbtool.sh uninstall dbtype=mongodb conf=mongodbconf.csv
Enter yes as prompted to complete the uninstallation.

Uninstalling the database will forcibly close the database and delete all files in the data directory and the software directory of the MongoDB cluster. Exercise caution when performing this operation.
Parent topic: Deploying MongoDB