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

# Validates which vendors can be deleted and returns counts of deletable and non-deletable vendors.



## OpenAPI

````yaml api-reference/openapi.json post /api/vendors/validate-bulk-delete
openapi: 3.0.0
info:
  title: Bigcapital
  description: Financial accounting software
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /api/vendors/validate-bulk-delete:
    post:
      tags:
        - Vendors
      summary: >-
        Validates which vendors can be deleted and returns counts of deletable
        and non-deletable vendors.
      operationId: VendorsController_validateBulkDeleteVendors
      parameters:
        - name: Authorization
          in: header
          description: >-
            Value must be 'Bearer <token>' where <token> is an API key prefixed
            with 'bc_' or a JWT token.
          required: true
          schema:
            type: string
            example: Bearer bc_1234567890abcdef
        - name: organization-id
          in: header
          description: >-
            Required if Authorization is a JWT token. The organization ID to
            operate within.
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkDeleteVendorsDto'
      responses:
        '200':
          description: >-
            Validation completed. Returns counts and IDs of deletable and
            non-deletable vendors.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateBulkDeleteVendorsResponseDto'
components:
  schemas:
    BulkDeleteVendorsDto:
      type: object
      properties:
        ids:
          description: Array of vendor IDs to delete
          example:
            - 1
            - 2
            - 3
          type: array
          items:
            type: number
        skipUndeletable:
          type: boolean
          description: >-
            When true, undeletable vendors will be skipped and only deletable
            ones removed.
          default: false
      required:
        - ids
    ValidateBulkDeleteVendorsResponseDto:
      type: object
      properties:
        deletableCount:
          type: number
          description: Number of vendors that can be deleted
          example: 2
        nonDeletableCount:
          type: number
          description: Number of vendors that cannot be deleted
          example: 1
        deletableIds:
          description: IDs of vendors that can be deleted
          example:
            - 1
            - 2
          type: array
          items:
            type: number
        nonDeletableIds:
          description: IDs of vendors that cannot be deleted
          example:
            - 3
          type: array
          items:
            type: number
      required:
        - deletableCount
        - nonDeletableCount
        - deletableIds
        - nonDeletableIds

````