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

# Delete bank account

> Remove a bank account from a client.

<Warning>
  **Deprecated.** This endpoint is no longer available in the public API and is kept for reference only.
</Warning>

Removes a bank account from the client's profile. Requires an API key with access level 3 or higher.

## Path parameters

<ParamField path="clientId" type="string" required>
  Unique identifier of the client.
</ParamField>

<ParamField path="bankId" type="string" required>
  Unique identifier of the bank account to delete.
</ParamField>

## Response

Returns the deleted bank account. See [Create US bank account](/api-reference/management/clients/bank-accounts/create-us-bank-account) for the field list.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.cryptomate.me/management/clients/client_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/banks/ba_abc123" \
    -H "x-api-key: $CRYPTOMATE_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "id": "ba_abc123",
    "company_id": "comp_6f1e2a30-4a3c-4b2e-9a1d-5e8c9b7a1f23",
    "client_id": "client_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "bank_name": "Chase Bank",
    "bank_holder_name": "John Michael Doe",
    "account_alias": "Primary Checking",
    "type": "ACH",
    "currency": "USD",
    "account_number": "123456789",
    "routing_number": "021000021",
    "account_type": "checking"
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "code": "NOT_FOUND",
    "message": "Bank account ba_abc123 for company comp_6f1e2a30-4a3c-4b2e-9a1d-5e8c9b7a1f23 not found"
  }
  ```
</ResponseExample>
