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

# Delete Document

> Delete a document. If it is the last document, its fields are nullified to preserve the collection schema.

Delete a specific document. If it is the last document, it effectively resets the collection schema.


## OpenAPI

````yaml DELETE /api/v1/datalake/{source}/databases/{db}/documents/{id}
openapi: 3.1.0
info:
  title: WaveCentric AI LooP API
  description: >-
    Comprehensive API for managing omnichannel logistics, inquiries, tasks, and
    data lake operations.
  version: 1.0.0
servers:
  - url: https://ai-loop.alpeadria.com
    description: Production server
security: []
paths:
  /api/v1/datalake/{source}/databases/{db}/documents/{id}:
    delete:
      tags:
        - Data Lake
      summary: Delete document
      description: >-
        Delete a document. If it is the last document, its fields are nullified
        to preserve the collection schema.
      operationId: delete-datalake-document
      parameters:
        - name: source
          in: path
          required: true
          schema:
            type: string
        - name: db
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Document deleted or nulled successfully.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````