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

# Bulk delete financial accounts

> Deletes multiple financial accounts in one request. Returns a per-account result indicating success or failure,
so a partial failure does not fail the whole request. Deleting an account also deletes all of its associated
data, like balances, holdings, transactions, and transfer links.



## OpenAPI

````yaml /openapi/v1.json post /finance/accounts/bulk-delete
openapi: 3.2.0
info:
  title: Synci
  version: '1.0'
  description: >-
    Synci is a platform for integrating financial accounts with your favorite
    apps.
servers:
  - url: https://api.synci.io/api/v1
security:
  - oauth2: []
  - http: []
tags:
  - name: Finance
    kind: nav
  - name: Connections
    parent: Finance
  - name: Accounts
    parent: Finance
  - name: Transactions
    parent: Finance
  - name: Institutions
    parent: Finance
  - name: Destinations
    kind: nav
  - name: YNAB
    parent: Destinations
  - name: Lunch Money
    parent: Destinations
  - name: Google Sheets
    parent: Destinations
  - name: SimpleFIN
    parent: Destinations
  - name: Notion
    parent: Destinations
  - name: Account
    kind: nav
  - name: Webhooks
    parent: Account
  - name: User
    parent: Account
  - name: rule-engine
    summary: Rules
    kind: nav
  - name: Rules
    parent: rule-engine
  - name: Rule Logs
    parent: rule-engine
  - name: Transfers
    kind: nav
  - name: Transfer Links
    parent: Transfers
  - name: Transfer Logs
    parent: Transfers
paths:
  /finance/accounts/bulk-delete:
    post:
      tags:
        - Accounts
      summary: Bulk delete financial accounts
      description: >-
        Deletes multiple financial accounts in one request. Returns a
        per-account result indicating success or failure,

        so a partial failure does not fail the whole request. Deleting an
        account also deletes all of its associated

        data, like balances, holdings, transactions, and transfer links.
      operationId: financial.accounts.bulk-delete
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkDeleteFinancialAccountsRequest'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    const: Bulk delete completed.
                  data:
                    type: object
                    properties:
                      deleted_count:
                        type: integer
                        minimum: 0
                      failed_count:
                        type: integer
                        minimum: 0
                      results:
                        type: array
                        items:
                          anyOf:
                            - type: object
                              properties:
                                account_id:
                                  type: string
                                name:
                                  type: string
                                success:
                                  type: boolean
                                message:
                                  type: string
                                  const: Financial account deleted.
                              required:
                                - account_id
                                - name
                                - success
                                - message
                            - type: object
                              properties:
                                account_id:
                                  type: string
                                name:
                                  type: string
                                success:
                                  type: boolean
                                message:
                                  type: string
                                  const: Failed to delete financial account.
                                error:
                                  type: string
                              required:
                                - account_id
                                - name
                                - success
                                - message
                                - error
                            - type: object
                              properties:
                                account_id:
                                  type: string
                                name:
                                  type: 'null'
                                success:
                                  type: boolean
                                message:
                                  type: string
                                  const: >-
                                    Financial account not found or does not
                                    belong to the user.
                              required:
                                - account_id
                                - name
                                - success
                                - message
                    required:
                      - deleted_count
                      - failed_count
                      - results
                required:
                  - message
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    BulkDeleteFinancialAccountsRequest:
      type: object
      properties:
        accountIds:
          type: array
          description: >-
            The IDs of the financial accounts to delete. Only accounts belonging
            to the authenticated user will be deleted.
          items:
            type: integer
          minItems: 1
          maxItems: 100
      required:
        - accountIds
      title: BulkDeleteFinancialAccountsRequest
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.synci.io/oauth/authorize
          tokenUrl: https://api.synci.io/oauth/token
          scopes:
            profile:read: View your name, email, and profile details
            accounts:read: View your connected financial accounts and balances
            accounts:write: >-
              Update, sync, and remove your financial accounts, and change their
              settings
            transactions:read: View your transactions
            transactions:write: Create, update, and delete your transactions
            sensitive:read: >-
              See sensitive identifiers like account numbers and account holder
              names
            transfer-links:read: View your transfer links and their transfer history
            transfer-links:write: Create, update, and delete transfer links, and undo transfers
            rules:read: View your rules and rule activity
            rules:write: Create, update, and delete rules, and undo rule actions
            webhooks:read: View your webhook endpoints
            webhooks:write: >-
              Create, update, and delete webhook endpoints, and rotate their
              secrets
            destinations:read: View your connected destinations
            destinations:write: Connect, update, and remove destinations
            financial-connections:read: View your connected institutions
            financial-connections:write: Manage your connected institutions
    http:
      type: http
      description: Bearer token (personal access token or OAuth access token)
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.