> ## Documentation Index
> Fetch the complete documentation index at: https://ionet-cca8037f-confidential-compute.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a document

> Delete a specific document. All chunks corresponding to the document are deleted, and all other references to the document are removed.

**NOTE**: Deletions do not yet impact the knowledge graph or other derived data. This feature is planned for a future release.


## OpenAPI

````yaml openapi/rag-documents/delete-document-by-id.json delete /api/r2r/v3/documents/{id}
openapi: 3.1.0
info:
  title: IO Intelligence
  version: '1.0'
servers:
  - url: https://api.intelligence.io.solutions
security:
  - sec0: []
paths:
  /api/r2r/v3/documents/{id}:
    delete:
      summary: Delete a document
      description: >-
        Delete a specific document. All chunks corresponding to the document are
        deleted, and all other references to the document are removed.
      operationId: delete-document-by-id
      parameters:
        - name: id
          in: path
          description: Document ID
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    results:
                      success: true
              schema:
                type: object
                properties:
                  results:
                    type: object
                    properties:
                      success:
                        type: boolean
                        example: true
                        default: true
        '404':
          description: '404'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
        '422':
          description: '422'
          content:
            text/plain:
              examples:
                Result:
                  value: ''
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: oauth2
      flows: {}

````