> ## Documentation Index
> Fetch the complete documentation index at: https://hanabiaiinc-fish-772-enterprise-versions.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Knowledge Source

> Delete a knowledge source.



## OpenAPI

````yaml delete /v1/agent/knowledge-sources/{source_id}
openapi: 3.1.0
info:
  title: FishAudio OpenAPI
  version: '1'
servers:
  - description: Fish Audio API
    url: https://api.fish.audio
security: []
tags: []
paths:
  /v1/agent/knowledge-sources/{source_id}:
    delete:
      tags:
        - Knowledge Sources
      summary: Delete Knowledge Source
      description: >-
        Delete a knowledge source. Returns 409 while any agent still references
        it

        — in its draft or in its currently published version (sessions resolve

        sources at call time, so deleting a published reference would change a

        running agent). Check `GET
        /v1/agent/knowledge-sources/{source_id}/agents`,

        detach via the agent config, and republish if needed before deleting.
      parameters:
        - in: path
          name: source_id
          description: ''
          required: true
          schema:
            title: Source Id
            type: string
          deprecated: false
      responses:
        '204':
          description: Request fulfilled, nothing follows
          headers: {}
        '401':
          description: No permission -- see authorization schemes
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
        '404':
          description: Nothing matches the given URI
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
        '409':
          description: Request conflict
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````