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

# Delete knowledge base source

> Deletes a knowledge base source (current behavior).

## Notes

* Deletes a specific source from a knowledge base


## OpenAPI

````yaml delete /api/knowledge-bases/delete-knowledge-base-source/{knowledgeBaseId}/{sourceId}
openapi: 3.0.3
info:
  title: Zudu API
  description: >-
    Comprehensive REST API for LiveKit Backend - Call Management, Agent
    Configuration, and Real-time Communication Services
  version: 1.0.0
  contact:
    name: Zudu AI Team
    url: https://zudu.ai
    email: support@zudu.ai
  license:
    name: Proprietary
    url: https://zudu.ai/license
servers:
  - url: https://api.zudu.ai
    description: Production (Customer-facing)
security:
  - apiKey: []
    apiSecret: []
tags:
  - name: Agent Management
    description: Create and manage AI agents
  - name: Call Data Management
    description: Call records and history
  - name: Customer API Keys
    description: Manage API keys
  - name: Post-Call Webhooks
    description: Webhook configuration
  - name: phone-number-controller
    description: Phone numbers
  - name: batch-call-controller
    description: Batch calls
  - name: MCP Server Management
    description: MCP servers
  - name: Knowledge Base Management
    description: Knowledge bases
  - name: Call Analysis
    description: Call analysis
paths:
  /api/knowledge-bases/delete-knowledge-base-source/{knowledgeBaseId}/{sourceId}:
    delete:
      tags:
        - Knowledge Base Management
      summary: Delete knowledge base source
      description: Deletes a specific source from a knowledge base. Requires orgId header.
      operationId: deleteKnowledgeBaseSource
      parameters:
        - name: knowledgeBaseId
          in: path
          required: true
          description: Knowledge base ID
          schema:
            type: string
            example: knowledge_base_abc123
        - name: sourceId
          in: path
          required: true
          description: Source ID to delete
          schema:
            type: string
            example: source_xyz789
      responses:
        '200':
          description: Knowledge base source deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseKnowledgeBase'
              example:
                message: Knowledge base source deleted successfully
                status: success
                error: null
                data:
                  knowledge_base_id: knowledge_base_abc123
                  source_id: source_xyz789
                  deleted: true
        '404':
          description: Knowledge base or source not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseKnowledgeBase'
              example:
                message: Knowledge base not found
                status: error
                error: >-
                  Knowledge base 'kb_123' does not exist in organization
                  'org_456'
                data: null
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseKnowledgeBase'
              example:
                message: Failed to create knowledge base
                status: error
                error: Azure Storage connection failed
                data: null
components:
  schemas:
    ApiResponseKnowledgeBase:
      type: object
      properties:
        message:
          type: string
        status:
          type: string
        error:
          type: string
        data:
          $ref: '#/components/schemas/KnowledgeBase'
    KnowledgeBase:
      type: object
      properties:
        knowledge_base_id:
          type: string
        organization_id:
          type: string
        knowledge_base_name:
          type: string
        status:
          type: string
          enum:
            - draft
            - in_progress
            - ready
            - failed
        enable_auto_refresh:
          type: boolean
        last_refreshed_timestamp:
          type: integer
          format: int64
        knowledge_base_sources:
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeBaseSource'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        access_info:
          type: object
          additionalProperties:
            type: object
        agent_info:
          type: array
          items:
            $ref: '#/components/schemas/AgentInfo'
    KnowledgeBaseSource:
      type: object
      properties:
        textSource:
          type: boolean
        urlSource:
          type: boolean
        documentSource:
          type: boolean
        source_id:
          type: string
        knowledge_base_id:
          type: string
        type:
          type: string
          enum:
            - text
            - url
            - document
        filename:
          type: string
        file_url:
          type: string
        title:
          type: string
        text:
          type: string
        url:
          type: string
        azure_blob_path:
          type: string
        file_size:
          type: integer
          format: int64
        status:
          type: string
          enum:
            - pending
            - processing
            - completed
            - failed
        processing_error:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    AgentInfo:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      description: API Key for MCP server and external service authentication
      name: X-API-KEY
      in: header
    apiSecret:
      type: apiKey
      description: API Secret for MCP server and external service authentication
      name: X-API-SECRET
      in: header

````