Hakim
Hakim

Reputation: 120

How can I delete the PostgreSQL user in my mac? because, there is no user in the preference

I forgot how I install postgresql before.
and now I have removed it by following this steps https://stackoverflow.com/a/9240197/12381565 .

But my postgresql user didn't gone from the taskbar, although in my user preference is doesn't have it, so I can't remove it again in the preference.

the screenshot

Maybe I deleted it once, but I forgot about it.

thank you.

Upvotes: 7

Views: 6552

Answers (3)

Max You
Max You

Reputation: 1

Execute in terminal: 'sudo rm -rf /Library/Postgresql'

Restart your computer after the execution

Upvotes: 0

Hakim
Hakim

Reputation: 120

Fixed now.

When I re-check again with pgAdmin4, I see the server with the same name of this user PostgreSQL.
I try to delete it, and now it's gone.

Upvotes: 1

Aidar Chakiev
Aidar Chakiev

Reputation: 121

Try this in terminal:

sudo /usr/bin/dscl . -delete /Users/postgres
sudo /usr/bin/dscl . -delete /Users/_postgres

than reboot mac.

Upvotes: 12

Related Questions