completely uninstall postgresql mac os code example Example: uninstall postgresql mac $ brew remove postgresql