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

# Delete multiple files in a single request

> Permanently delete multiple files in a single request.

**Authorization (applied to every file in the request):**
- Visibility: file must be accessible to the user → 404 if any are not found
- Delete permission: user must have the right to delete each file → 403 if any are denied
- Workspace type: workspace must not be sync-managed → 400 if any are synced

Returns 204 (No Content) on success.



## OpenAPI

````yaml /api-reference/api-console.yaml post /api/v3/files/bulk-delete
openapi: 3.1.0
info:
  title: LightOn API
  version: 3.9.0 (v1)
  description: >-
    LightOn gives you an API to search, parse, and ingest documents at scale.
    Build knowledge-retrieval pipelines without managing vector databases or OCR
    models.
servers:
  - url: https://api.lighton.ai
security: []
tags:
  - name: Ask
    description: >-
      Retrieval-augmented generation: search your indexed corpus and generate an
      LLM answer grounded in the retrieved passages. Supports streaming (SSE)
      and synchronous modes.
  - name: Search
    description: >-
      Hybrid vector + text retrieval over your indexed corpus. Returns ranked
      passages with provenance (file, page range, workspace). Optional reranking
      and vision mode.
  - name: Files
    description: Upload, list, fetch, and delete documents indexed in your workspaces.
  - name: Facets
    description: >-
      Organise documents with hierarchical content types and custom attributes
      per file. Start from starter templates or build your own classification
      schema from scratch.
  - name: Tags
    description: >-
      Manage flat, company-wide labels used to scope search and group content
      across workspaces.
  - name: Workspaces
    description: >-
      Create and manage workspaces — the access-controlled containers your
      documents live in.
  - name: Parse
    description: >-
      Convert documents into structured Markdown — PDFs, images, Office files,
      and HTML. Synchronous endpoint capped at 20 MB / 15 pages.
  - name: Extract
    description: >-
      Pull typed fields out of documents using a JSON Schema you provide. Sync
      mode for small documents (≤20 MB / 15 pages); async mode for larger jobs
      (≤100 MB / 1000 pages) with polling on a job ID.
  - name: API Keys
    description: >-
      Provision and revoke API keys used to authenticate against the Console
      API.
  - name: Models
    description: >-
      List, register, update, and delete custom ML models scoped to your
      company.
paths:
  /api/v3/files/bulk-delete:
    post:
      tags:
        - Files
      summary: Delete multiple files in a single request
      description: >-
        Permanently delete multiple files in a single request.


        **Authorization (applied to every file in the request):**

        - Visibility: file must be accessible to the user → 404 if any are not
        found

        - Delete permission: user must have the right to delete each file → 403
        if any are denied

        - Workspace type: workspace must not be sync-managed → 400 if any are
        synced


        Returns 204 (No Content) on success.
      operationId: api_v3_files_bulk_delete_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FileBulkDeleteRequestSerializerV3'
            examples:
              BulkDeleteRequest:
                value:
                  ids:
                    - 123
                    - 124
                    - 125
                summary: Bulk delete request
        required: true
      responses:
        '204':
          description: Files deleted successfully (no content returned)
        '400':
          description: Invalid request or synced workspace constraint
        '401':
          description: Authentication credentials were not provided
        '403':
          description: User does not have permission to delete one or more files
        '404':
          description: One or more files not found or not accessible
      security:
        - bearerAuth: []
components:
  schemas:
    FileBulkDeleteRequestSerializerV3:
      type: object
      description: Request serializer for V3 bulk file deletion.
      properties:
        ids:
          type: array
          items:
            type: integer
            minimum: 1
      required:
        - ids
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````