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

# Delete a knowledge source

> Permanently removes a source, its indexed passages and their vectors, and the stored file behind it.



## OpenAPI

````yaml /openapi.json delete /v1/knowledge/sources/{sourceId}
openapi: 3.0.0
info:
  title: wondeya Developer API
  description: >-
    The public REST API for building on wondeya: agents, projects, pages,
    knowledge, assets, brand, theme, usage, retrieval and chat, authenticated by
    a workspace API key (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Production
  - url: http://localhost:8080
    description: Development
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/knowledge/sources/{sourceId}:
    delete:
      tags:
        - Knowledge
      summary: Delete a knowledge source
      description: >-
        Permanently removes a source, its indexed passages and their vectors,
        and the stored file behind it.
      operationId: PublicKnowledgeController_deleteSource_v1
      parameters:
        - name: sourceId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletePublicKnowledgeSourceDto'
        '404':
          description: No such source in this workspace
      security:
        - api-key: []
components:
  schemas:
    DeletePublicKnowledgeSourceDto:
      type: object
      properties:
        sourceId:
          type: string
        chunksDeleted:
          type: number
        objectsDeleted:
          type: number
      required:
        - sourceId
        - chunksDeleted
        - objectsDeleted
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        A workspace API key: wdy_live_… / wdy_test_…. Created at POST
        /workspaces/{tenantId}/keys and shown exactly once.

````