> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove existing bank account

> Remove a bank account from an acceptor application using removeBankAccountInput. At least one bank account is required for approval.

Use `removeBankAccountInput` to remove an existing bank account. You only need to provide the bank account's id to remove it.

<Note>
  After reviewing the application for Maple Street Coffee, a developer at Clearpath Payments realizes that a personal account was mistakenly added instead of the business account. They need to remove this bank account from the application before proceeding with the underwriting process.
</Note>

<Info>
  When removing bank accounts, be aware that at least one bank account may be required for
  application approval. Removing all bank accounts will cause validation to fail when you submit the
  application.
</Info>

<RequestExample>
  ```graphql Operation lines expandable theme={null}
  mutation UpdateAcceptorApplication($input: AcceptorApplicationUpdateInput!) {
    updateAcceptorApplication(input: $input) {
      errors {
        ... on Error {
          message
          __typename
        }
      }
      acceptorApplication {
        id
        applicationStatus
        billingAndFunding {
          bankAccounts {
            accountNumberLast4
            id
          }
        }
      }
    }
  }
  ```

  ```json Variables lines theme={null}
  {
    "input": {
      "id": "d7c5d7d7-b7be-4f50-8e11-2f141697fe12",
      "billingAndFunding": {
        "bankAccounts": [
          {
            "removeBankAccountInput": {
              "id": "f4350119-53a5-4d15-90f0-38b301ee0943"
            }
          }
        ]
      }
    }
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Response lines theme={null}
  {
    "data": {
      "updateAcceptorApplication": {
        "acceptorApplication": {
          "id": "d7c5d7d7-b7be-4f50-8e11-2f141697fe12",
          "applicationStatus": "DRAFT",
          "billingAndFunding": {
            "bankAccounts": []
          }
        }
      }
    }
  }
  ```
</ResponseExample>

<Info>
  Like stakeholder operations, you can perform multiple bank account operations
  in a single API call. For example, you can add new bank accounts, update
  existing ones, and remove others all in the same  updateAcceptorApplication
  mutation.
</Info>
