Delete a Bank account

BankAccount can be deleted only if it is not used by any live Transactions.

$result = Pencepay_BankAccount::delete('bank_account_uid', 'customer_uid');

Result

DeleteResult object is returned, indicating the status of the delete operation.