You can only delete an account if there is no accounting transaction involves that particular account.
You will see the lock icon at the Account. That indicates that the account is not deletable.
So erase any accounting transactions involving the account if you want to delete the account.