This can be used:
Note: Corresponding transactions in the Nominal Ledger are not deleted, so you will need to post opposite entries, for example, a credit note to reverse an invoice. This then posts the opposite entries to the Nominal Ledger.
Once you have deleted the required transactions, check the ledger does balance by running Balance Ledgers.
If you decided not to use the archived history file, then the transactions are deleted from the ledger permanently.
Within Sales or Purchase Ledger:
Open: Adjust Transactions > Delete Transactions.
Note: If you select the wrong account, simply reselect the account you need.