Uninstalling PostgreSQL
Suggest editsThe PostgreSQL installer creates an uninstaller in the PostgreSQL installation directory. You can uninstall PostgreSQL on Windows and Mac hosts.
Note
If you used Stack Builder to install any applications that work with PostgreSQL, you must uninstall each application. Use the uninstall program created for that application during the install process.
Uninstalling PostgreSQL on Windows
On the Windows Control Panel, open the Uninstall or change a program dialog box.
Right-click PostgreSQL, and select Uninstall/Change from the context menu.
You can remove the entire application or individual components.
- To remove the entire application, select Entire application and select Next.
- To remove individual components, select Individual components and select Next. Then, from the list, select the components to uninstall, and select Next.
A progress bar keeps you informed as PostgreSQL is removed.
When the uninstaller completes, select OK.
Uninstalling PostgreSQL on Mac
These instructions apply if you used EDB's interactive Mac installer to install PostgreSQL.
If you used another installer, refer to the macOS documentation for instructions on uninstalling an app.
If you used Homebrew, use the
brew uninstall
command to uninstall PostgreSQL and any related packages. Usebrew list
to see what's installed.
To uninstall PostgreSQL on a Mac system:
Assume the identity of an operating system superuser, and navigate into the folder where the uninstaller resides:
/Library/PostgreSQL/<version>
Where
version
is the version of PostgreSQL you installed.Invoke the uninstaller:
open uninstall-postgresql.app
If prompted, provide a password that allows the uninstaller to make changes to your system.
The uninstaller opens and asks if you want to uninstall the entire application or individual components.
Respond to the installer:
- To remove the entire application, select Entire application, and select Next.
- To remove individual components, select Individual components. Select the components to uninstall, and select Next to start uninstalling components.
Progress bars appear as each component is removed.
When the uninstaller completes, select OK.
Could this page be better? Report a problem or suggest an addition!