Issue with deleting a Mac account through system preferences

Solution 1:

In order to add/delete accounts you have to unlock first:

enter image description here

which will prompt you for an Administrator account/password. Once entered successfully you can select and delete any user not currently logged in.