You cannot delete an account/controlling account if there are references to it in accounting operations.

To delete an account/controlling account: