Completely uninstall PostgreSQL 9.4 from Mac OSX Lion

The following is the un-installation for PostgreSQL 9.1 installed using the EnterpriseDB installer. You most probably have to replace folder /9.1/ with your version number. If /Library/Postgresql/doesn’t exist then you probably installed PostgreSQL with a different method like homebrew or Postgres.app.

To remove the EnterpriseDB One-Click install of PostgreSQL 9.1:

Open a terminal window. Terminal is found in: Applications->Utilities->Terminal