Skip to content

Instantly share code, notes, and snippets.

@luiztiago
Created May 28, 2012 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luiztiago/2820260 to your computer and use it in GitHub Desktop.
Save luiztiago/2820260 to your computer and use it in GitHub Desktop.
Complete uninstall postgresql on Mac OS
Manual Uninstallation:
1) Stop the server
sudo /sbin/SystemStarter stop postgresql-8.3
2) Remove menu shortcuts:
sudo rm -rf /Applications/PostgreSQL 8.3
3) Remove the ini file
sudo rm -rf /etc/postgres-reg.ini
4) Removing Startup Items
sudo rm -rf /Library/StartupItems/postgresql-8.3
5) Remove the data and installed files
sudo rm -rf /Library/PostgreSQL/8.3
6) Delete the user postgres
sudo dscl . delete /users/postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment