Skip to content

Instantly share code, notes, and snippets.

View efraespada's full-sized avatar
🐕
Working with a friend

Efra Espada efraespada

🐕
Working with a friend
View GitHub Profile
@efraespada
efraespada / uninstallPostgreSQL.sh
Created November 15, 2016 12:33
PostgreSQL uninstaller for macOS Sierra
#!/bin/bash
# launch it by this way -> sudo sh unistallPostgreSQL.sh [POSTGRESQL_VERSION -> 9.6]
if [ -d "/Library/PostgreSQL/$1/" ]; then
open /Library/PostgreSQL/$1/uninstall-postgresql.app
#/Library/PostgreSQL/9.1/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh
rm -rf /Library/PostgreSQL