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

# Delete a document

> Delete a document from the database and storage



## OpenAPI

````yaml https://api.arcsolutionsteam.workers.dev/openapi delete /api/v1/documents/{id}
openapi: 3.1.0
info:
  title: IntelliQ API
  description: API for IntelliQ
  version: 2.0.0
servers:
  - url: http://localhost:8787
    description: Local server
  - url: https://app.intelliq.dev
    description: Production server
security: []
paths:
  /api/v1/documents/{id}:
    delete:
      tags:
        - Documents
      summary: Delete a document
      description: Delete a document from the database and storage
      operationId: deleteApiV1DocumentsById
      parameters:
        - in: path
          name: id
          schema:
            type: number
          required: true
      responses:
        '200':
          description: Document deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                required:
                  - success
                  - message

````