3

When I am accessing Fast User Switching, there is a PostgreSQL account:

enter image description here I have uninstalled PostgreSQL account a while back, looked out libraries and no trace of folder PostgreSQL.

I am aware that I can hide this account, but it would be ideal to delete it completely.

5
  • 1
    Is the account visible in System Preferences > Users & Groups? If it is, you can delete it by selecting it and pressing the minus button.
    – jaume
    Mar 18, 2022 at 10:02
  • Account is not visible in Users & Groups.
    – Noz_Char
    Mar 19, 2022 at 17:21
  • 2
    In the Directory Utility app (press Command-Space, type "Directory Utility" and select the app by that name to launch it) under Directory Editor, if you select Viewing Users in node /Local/Default, do you see a PostgreSQL user? If that's the case, you can authenticate by pressing the lock icon and delete it. Before doing so, write down the value of UniqueID and NFSHomeDirectory. After deleting the user, you can check if the folder specified by NFSHomeDirectory contains files you want to keep. If it doesn't, you can delete it.
    – jaume
    Mar 19, 2022 at 19:03
  • 1
    Thank you, that was it. If you could please add your comment as an answer, I can mark it as a correct solution.
    – Noz_Char
    Mar 21, 2022 at 8:02
  • 1
    Great, I'm glad I could help, I've consolidated both comments into an answer.
    – jaume
    Mar 21, 2022 at 9:22

1 Answer 1

5

The first place to look for accounts is System Preferences > Users & Groups. If the account is listed there, you can delete it by selecting it and pressing the minus button (you may need to press the lock button to enable changes):

enter image description here

If the account is not listed in System Preferences > Users & Groups, you can use the Directory Utility app:

  1. Press Command-Space, type "Directory Utility" and select the app by that name to launch it: enter image description here
  2. Open the Directory Editor tab and select "Viewing Users in node /Local/Default": enter image description here
  3. Authenticate by pressing the lock icon. enter image description here
  4. Scroll down the list until you find the account you want to delete and select it.
  5. For reference, write down the value of NFSHomeDirectory and UniqueID (NFSHomeDirectory is the user's home directory, it may contain files you want to keep. UniqueID is the User ID that unambiguously identifies files owned by the user - you can find those files with this command: find / -uid <UniqueID> 2>/dev/null.)
  6. Press the minus button to delete the account.
  7. Quit Directory Utility.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .