General Ledger will not let you delete accounts unless:
The current-year opening and current balance for the Actual fiscal set of the account are both zero.
No transactions have been posted to the Actual fiscal set of the account in the current year.
The account is not assigned as the Default Closing Account in the G/L Options form.
These restrictions preserve the integrity of your data, and preserve the audit trail.
You can delete an account with quantities in the Quantity fiscal set and with amounts in any of the budget fiscal sets
Before you try to delete an account, be sure that
The account is inactive.
The account is not used as a retained earnings account. (Note that General Ledger will not check if the account is a closing account for a segment code: you must do that yourself.)
The account does not receive amounts automatically reallocated from another account. If it does, assign a different reallocation account for the other account.
The beginning and current balances for the account are zero.
No transactions have been posted to the account in the current year.
The account does not contain quantities or budget amounts that you need to produce comparative financial statements.