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

# Delete Document

> Removes a specific document from the knowledge base. This operation deletes both the document's
content and its associated vector embeddings from the system. The deletion is permanent and cannot
be undone. The knowledge base itself remains intact, only the specified document is removed.



## OpenAPI

````yaml /api-reference/openapi.json delete /v2/knowledge-bases/{kb_id}/documents/{document_id}
openapi: 3.1.0
info:
  title: Verbex Platform API
  description: API for managing AI agents, calls, phone numbers, and more.
  version: 1.0.0
servers: []
security: []
paths:
  /v2/knowledge-bases/{kb_id}/documents/{document_id}:
    delete:
      tags:
        - Knowledge Bases v2
      summary: Delete Document
      description: >-
        Removes a specific document from the knowledge base. This operation
        deletes both the document's

        content and its associated vector embeddings from the system. The
        deletion is permanent and cannot

        be undone. The knowledge base itself remains intact, only the specified
        document is removed.
      operationId: >-
        delete_document_v2_knowledge_bases__kb_id__documents__document_id__delete
      parameters:
        - name: kb_id
          in: path
          required: true
          schema:
            type: string
            title: Kb Id
        - name: document_id
          in: path
          required: true
          schema:
            type: string
            title: Document Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````