code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.Account.delete_external_account(
    "acct_1032D82eZvKYlo2C",
    "ba_1LSds32eZvKYlo2C27ZyVavY",
  )
  '''Response {
    "id": "ba_1LSds92eZvKYlo2CqMnJaute",
    "object": "bank_account",
    "deleted": true
  }'''
nl: Delete a bank accountYou can delete destination bank accounts from a Custom account.There are restrictions for deleting a bank account with default_for_currency set to true. You cannot delete a bank account if any of the following apply:The bank account's currency is the same as the Account[default_currency].There is another external account (card or bank account) with the same currency as the bank account.To delete a bank account, you must first replace the default external account by setting default_for_currency with another external account in the same currency.ParametersNo parameters.ReturnsReturns the deleted bank account object