Issue with deleting a Mac account through system preferences
In order to add/delete accounts you have to unlock first:



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