⭐Ensure that the account balance is zero when deactivating the account
Go to Accounting
Choose Accounts activation
Search for the account then select it ☑
Click deactivate
Click yes to respond to the alert message
As a result, the account will not appear permanently in the transactions, but it will appear in the account ledger and reports