Rate This Document
Findability
Accuracy
Completeness
Readability

Uninstalling Greenplum

Select an uninstallation mode based on your installation mode.

Uninstalling the Database (Against Source Code Compilation)

  1. Stop the database.
    gpstop -a

    You can also run the following command to stop the database:

    ps -ef | grep postgres
    pkill postgres
  2. Switch to the root user.
    exit
  3. Delete the installation directory of the database.
    rm -rf /usr/local/gpdb
  4. Delete the data directory of the database.
    rm -rf /data/*

Uninstalling the Database (Against Installation of the RPM Package from the Mirror Site)

  1. Stop the database.
    gpstop -a

    You can also run the following command to stop the database:

    ps -ef | grep postgres
    pkill postgres
  2. Exit the gpadmin user.
    exit
  3. Uninstall the RPM package.
    rpm -qi greenplum
    rpm -e greenplum

  4. Delete the installation directory of the database.
    rm -rf /usr/local/gpdb
  5. Delete the data directory of the database.
    rm -rf /data/*