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

# Remove An Own Bank Account

> Removes a bank account owned by the authenticated user.

- **AR (`bank` rail):** performs a soft delete. Returns `409` (`BANK_0002`) if the account has pending movements.
- **BR (`pix` rail):** disables the Pix key (soft delete). Always succeeds if the key exists.

**Domain error codes** (returned inside `data.detail[]` on error):
- `BANK_0002` — the account has pending movements and cannot be removed.

---

**Authorization**

- Requires a valid API key.



## OpenAPI

````yaml delete /wallet/banking/accounts/{rail_type}/{id}/
openapi: 3.0.0
info:
  title: Ripio Gateway
  description: Ripio API - Services documentation.
  version: 0.1.0
  x-logo:
    url: https://cwstatic.nyc3.digitaloceanspaces.com/1996/bitcointrade.png
servers:
  - url: https://api.ripio.com
    description: Production environment
security: []
paths:
  /wallet/banking/accounts/{rail_type}/{id}/:
    delete:
      tags:
        - Ripio Wallet
      summary: banking - Remove an own bank account
      description: >-
        Removes a bank account owned by the authenticated user.


        - **AR (`bank` rail):** performs a soft delete. Returns `409`
        (`BANK_0002`) if the account has pending movements.

        - **BR (`pix` rail):** disables the Pix key (soft delete). Always
        succeeds if the key exists.


        **Domain error codes** (returned inside `data.detail[]` on error):

        - `BANK_0002` — the account has pending movements and cannot be removed.


        ---


        **Authorization**


        - Requires a valid API key.
      parameters:
        - in: path
          name: rail_type
          required: true
          description: >-
            Rail type of the account to remove. Use `bank` for Argentine
            accounts, `pix` for Brazilian Pix keys.
          schema:
            example: bank
            type: string
        - in: path
          name: id
          required: true
          description: Unique identifier of the bank account.
          schema:
            example: 42
            type: integer
        - in: header
          name: authorization
          required: true
          description: The API key as a string.
          schema:
            type: string
        - in: header
          name: signature
          required: true
          description: >-
            See the [Generating
            Signature](/static/api/authentication#generating-signature) section
            for more details.
          schema:
            type: string
        - in: header
          name: timestamp
          required: true
          description: >-
            A timestamp in milliseconds. See the [Timestamp
            Security](/static/api/authentication#timestamp-security) section for
            more details.
          schema:
            type: number
        - in: header
          name: timstamp-tolerance
          required: false
          description: >-
            An additional, non-required parameter, that you can send to specify
            the number of milliseconds after the timestamp for the request to be
            valid. See the [Timestamp
            Security](/static/api/authentication#timestamp-security) section for
            more details.
          schema:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                description: Bank account removed successfully.
                properties:
                  error_code:
                    type: string
                    example: null
                  message:
                    type: string
                    example: null
                  data:
                    properties:
                      id:
                        type: integer
                      deleted:
                        type: boolean
                    type: object
                required:
                  - error_code
                  - message
                  - data
                type: object
        '401':
          description: Error response 401
        '403':
          description: Error response 403
        '404':
          description: Error response 404
        '409':
          description: Error response 409

````