...
The account balance must be zero.
Field Allow G/L Acc. Deletion Before) must be set on the page General Ledger Setup and the account must not have items of the same or later date.
If the field is selected Check G/L Account Usage On the page General Ledger Setup, then the account must not be used in any of the posting groups or posting settings.
...