Uninstalling Greenplum
Select an uninstallation mode based on your installation mode.
- If Greenplum is installed by compiling the source code, select Uninstalling the Database (Against Source Code Compilation).
- If Greenplum is installed using the RPM package of the mirror site, select Uninstalling the Database (Against Installation of the RPM Package from the Mirror Site).
Uninstalling the Database (Against Source Code Compilation)
- Stop the database.
gpstop -a

You can also run the following command to stop the database:
ps -ef | grep postgres pkill postgres
- Switch to the root user.
exit
- Delete the installation directory of the database.
rm -rf /usr/local/gpdb
- Delete the data directory of the database.
rm -rf /data/*
Uninstalling the Database (Against Installation of the RPM Package from the Mirror Site)
- Stop the database.
gpstop -a

You can also run the following command to stop the database:
ps -ef | grep postgres pkill postgres
- Exit the gpadmin user.
exit
- Uninstall the RPM package.
rpm -qi greenplum rpm -e greenplum

- Delete the installation directory of the database.
rm -rf /usr/local/gpdb
- Delete the data directory of the database.
rm -rf /data/*
Parent topic: Greenplum Installation Guide