PostgreSQL Uninstalling On Linux/Windows
The PostgreSQL installer creates an uninstaller in the installation directory. On Linux or
Mac, the name of the uninstaller is:
![](https://www.enterprisedb.com/docs/en/9.3/pginstguide/PostgreSQL_Installation_Guide-28.jpg)
![](https://www.enterprisedb.com/docs/en/9.3/pginstguide/PostgreSQL_Installation_Guide-29.jpg)
![](https://www.enterprisedb.com/docs/en/9.3/pginstguide/PostgreSQL_Installation_Guide-30.jpg)
![](https://www.enterprisedb.com/docs/en/9.3/pginstguide/PostgreSQL_Installation_Guide-31.jpg)
When PostgreSQL has been removed, an Info dialog opens to confirm Click OK to exit.
Uninstalling PostgreSQL on a Linux System
To uninstall PostgreSQL on a Linux system, assume the identity of an operating system
superuser, navigate into the directory that contains the uninstaller, and invoke the
uninstaller with the command:
PostgreSQL
![](https://www.enterprisedb.com/docs/en/9.6/instguide/images/PostgreSQL_Installation_Guide.1.15.1.jpg)
Click Yes to continue and uninstall PostgreSQL, or No to exit the uninstaller.
If you selected Yes, the uninstaller opens, and proceeds to remove PostgreSQL
![](https://www.enterprisedb.com/docs/en/9.6/instguide/images/PostgreSQL_Installation_Guide.1.15.2.jpg)
When the uninstaller completes, a Warning notifies you that the data directory and service user account have not been removed
![](https://www.enterprisedb.com/docs/en/9.6/instguide/images/PostgreSQL_Installation_Guide.1.15.3.jpg)
Click OK to close the Warning; an Info popup informs you that the uninstallation is complete
![](https://www.enterprisedb.com/docs/en/9.6/instguide/images/PostgreSQL_Installation_Guide.1.15.4.jpg)
Click OK to exit the uninstaller.
Mac, the name of the uninstaller is:
uninstall-postgresql
The uninstaller is located in:/opt/PostgresPlus/9.6ASOn Windows, the uninstaller is named:
uninstall-postgresql.exeThe uninstaller is located in:
C:\Program Files\PostgreSQL\9.6Un-installing PostgreSQL on a Windows System
- You can also use the graphical interface provided by Windows to uninstall PostgreSQL 9.3. Navigate through the Windows Control Panel to open the Windows Uninstall or change a program dialog
![](https://www.enterprisedb.com/docs/en/9.3/pginstguide/PostgreSQL_Installation_Guide-28.jpg)
- Right click on PostgreSQL 9.3, and select Uninstall/Change from the context menu. When prompted, confirm that you wish to uninstall PostgreSQL
![](https://www.enterprisedb.com/docs/en/9.3/pginstguide/PostgreSQL_Installation_Guide-29.jpg)
- Please note that uninstalling PostgreSQL will leave the data directory and database service user intact; when prompted, click OK to continue
![](https://www.enterprisedb.com/docs/en/9.3/pginstguide/PostgreSQL_Installation_Guide-30.jpg)
- A progress bar will keep you informed as PostgreSQL is removed.
![](https://www.enterprisedb.com/docs/en/9.3/pginstguide/PostgreSQL_Installation_Guide-31.jpg)
When PostgreSQL has been removed, an Info dialog opens to confirm Click OK to exit.
Uninstalling PostgreSQL on a Linux System
To uninstall PostgreSQL on a Linux system, assume the identity of an operating system
superuser, navigate into the directory that contains the uninstaller, and invoke the
uninstaller with the command:
./uninstall-postgresqlThe uninstaller will open a popup, asking you to confirm that you wish to uninstall
PostgreSQL
![](https://www.enterprisedb.com/docs/en/9.6/instguide/images/PostgreSQL_Installation_Guide.1.15.1.jpg)
Click Yes to continue and uninstall PostgreSQL, or No to exit the uninstaller.
If you selected Yes, the uninstaller opens, and proceeds to remove PostgreSQL
![](https://www.enterprisedb.com/docs/en/9.6/instguide/images/PostgreSQL_Installation_Guide.1.15.2.jpg)
When the uninstaller completes, a Warning notifies you that the data directory and service user account have not been removed
![](https://www.enterprisedb.com/docs/en/9.6/instguide/images/PostgreSQL_Installation_Guide.1.15.3.jpg)
Click OK to close the Warning; an Info popup informs you that the uninstallation is complete
![](https://www.enterprisedb.com/docs/en/9.6/instguide/images/PostgreSQL_Installation_Guide.1.15.4.jpg)
Click OK to exit the uninstaller.
Comments
Post a Comment