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

# Delete KB Doc

> <strong>(Convocore agents only)</strong> Deletes a document from the agent's knowledge base, if your agent is built with VF use [Voiceflow's API instead](https://developer.voiceflow.com/reference/project). This route must use the new V3 [endpoints](/api-reference/v3/intro).

<Warning>
  **This action is irreversible.** Deleting a KB document permanently removes:

  * The document metadata
  * All associated text chunks
  * Vector embeddings from the database
</Warning>

<Note>
  The agent will no longer be able to reference this document's content when answering questions.
</Note>

<Tip>
  To temporarily disable a document without deleting it, consider using tags to filter it out during retrieval instead.
</Tip>


## OpenAPI

````yaml DELETE /agents/{agentId}/kb/{docId}
openapi: 3.0.3
info:
  title: Convocore OpenAPI
  description: Full API reference for Convocore
  version: 1.0.4
servers:
  - url: https://eu-gcp-api.vg-stuff.com/v3
    description: EU Node.js API server
  - url: https://na-gcp-api.vg-stuff.com/v3
    description: NA Node.js API server
security: []
paths:
  /agents/{agentId}/kb/{docId}:
    delete:
      tags:
        - KB
      summary: Delete a KB doc
      operationId: kbRouter-deleteAgentKBDoc
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
        - name: docId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                required:
                  - success
                  - message
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      security:
        - Authorization: []
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer

````