Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got PostgreSQL from here.

Since I'm on 10.7 OS X, I'm having problems.

I want to uninstall the software I got from enterprisedb.

Any tips?

share|improve this question

migrated from Nov 3 '11 at 0:01

This question came from our site for professional and enthusiast programmers.

I edited your question a bit. Am I right calling it PostgreSQL? Your original post said "postgres". Is this right? Please feel free to rollback if you didn't like the changes I made. – daviesgeek Nov 3 '11 at 2:51

There is a one-click uninstaller that removes everything except the data director and user account. The default data directory is /Library/PostgreSQL/$VERSION/data, so rm -rf that directory (or wherever you instructed the installer to create it).

To remove your postgres user (assuming it is named 'postgres'), first list your users to verify that the user 'postgres' and group 'postgres' are what you expect: (just a safe check) before deleting anything.

sudo dscl . -read /Users/postgres

sudo dscl . -read /Groups/postgres

Look for the "real name" field, to ensure that it matches the version of the db you are removing.

Then remove the user and groups:

sudo dscl . -delete /Users/postgres

sudo dscl . -delete /Groups/postgres

Obviously, be careful when using sudo.

share|improve this answer

The uninstallation instructions are at the bottom of the installation guide linked from that download page.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.