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

# Delete knowledge base

> Delete a knowledge base and all its chunks by kb_id.



## OpenAPI

````yaml DELETE /v1/knowledge/{kb_id}
openapi: 3.1.0
info:
  title: MemWire API
  description: >-
    Persistent AI memory infrastructure — store, recall, and search memories for
    your AI agents.
  version: 1.0.0
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
  - url: http://localhost:8000
    description: Local development server
security: []
paths:
  /v1/knowledge/{kb_id}:
    delete:
      tags:
        - Knowledge
      summary: Delete knowledge base
      description: Delete a knowledge base and all its chunks by kb_id.
      operationId: delete_knowledge
      parameters:
        - name: kb_id
          in: path
          required: true
          schema:
            type: string
          description: The knowledge base ID returned when the KB was created.
      responses:
        '200':
          description: Knowledge base deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteKnowledgeResponse'
              example:
                deleted: true
components:
  schemas:
    DeleteKnowledgeResponse:
      type: object
      properties:
        deleted:
          type: boolean
          description: True if the knowledge base was deleted.

````