Unable to delete bank account

We want to delete a bank account but it is showing you can’t delete it because there is at least one transaction. How can I delete the bank account?

Well, you can’t delete a bank account if you have transactions in it. You will need to delete those transactions first.