Uninstalling PostgreSQL
- Go to the tool directory.
cd /home/tsdbtool
- Run the uninstallation command.
sh tsdbtool.sh uninstall dbtype=postgresql conf=postgresqlconf.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. Exercise caution when performing this operation.
Parent topic: Deploying PostgreSQL