If you delete a bank account with transactions, those transactions will be moved to an Undeposited Funds account.