Macbook Pro - Can't delete user account

Trying to delete a user account through the user/groups panel in System Preferences in the normal way.

However. the "-" associated with the particular user is greyed out. (I think its because the Mac was previously on a domain)

When I check the Unique ID of the account it returns the value of 0 (the root account also has the value of 0)

How can I get rid of the account or at least change the Unique ID?
DataquestukAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

serialbandCommented:
To read the user account ID.
 dscl . -read /Users/AccountName UniqueID
UniqueID: ID#

To Change the uid using the ID# you obtained above:
sudo dscl . -change /Users/AccountNAME UniqueID ID# 1234


Verify that the uid has changed:
dscl . -read /Users/AccountName UniqueID
UniqueID: 1234

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DataquestukAuthor Commented:
Thanks for the assistance.
serialbandCommented:
You're welcome.

You can also use dscl to create or delete IDs on the command line, but it doesn't create or delete the home folders or set the correct permissions.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.