uninstall postgres brew 1

uninstall postgres brew

$ brew uninstall postgres
$ rm -rf /usr/local/var/postgres
$ rm /usr/local/var/log/postgres.log
$ rm -f ~/.psqlrc ~/.psql_history

Here is what the above code is Doing:
1. Uninstalling the postgresql package
2. Removing the postgres data directory
3. Removing the postgres log file
4. Removing the psql configuration file and history file

Similar Posts