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

# Delete a knowledge base source

> Permanently delete a file or website source. This cannot be undone.

The source is removed from the list immediately and any scheduled
syncs stop. Its documents are removed from the agent's knowledge base
asynchronously, shortly after the request returns. If the source is
deleted while a sync or file processing is still in progress, some of
its content may remain searchable.



## OpenAPI

````yaml DELETE /v1/agents/{agentId}/knowledge-base/sources/{sourceId}
openapi: 3.1.0
info:
  title: PolyAI Agents API
  version: 1.0.11
  description: Manage PolyAI agents, telephony, deployments, and real-time configs.
servers:
  - url: https://api.us.poly.ai
    description: US region
  - url: https://api.eu.poly.ai
    description: EU region
  - url: https://api.uk.poly.ai
    description: UK region
  - url: https://api.studio.poly.ai
    description: Studio region
security:
  - polyApiKey: []
paths:
  /v1/agents/{agentId}/knowledge-base/sources/{sourceId}:
    parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
      - name: sourceId
        in: path
        required: true
        schema:
          type: string
    delete:
      tags:
        - Source Hub
      summary: Delete a knowledge base source
      description: |-
        Permanently delete a file or website source. This cannot be undone.

        The source is removed from the list immediately and any scheduled
        syncs stop. Its documents are removed from the agent's knowledge base
        asynchronously, shortly after the request returns. If the source is
        deleted while a sync or file processing is still in progress, some of
        its content may remain searchable.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSourceResponse'
        '401':
          description: Unauthorized – missing or invalid API key
        '403':
          description: Forbidden – insufficient permissions
        '404':
          description: Resource not found
components:
  schemas:
    DeleteSourceResponse:
      description: Confirmation that a source was deleted.
      type: object
      properties:
        id:
          description: Unique identifier of the deleted source
          type: string
      required:
        - id
  securitySchemes:
    polyApiKey:
      type: apiKey
      in: header
      name: X-API-KEY

````