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

# Delete knowledge base

> Delete a knowledge base and drop its vector collection

<Callout type="warning">
  This is permanent. Deleting a knowledge base also drops its vector collection
  and every source, document and chunk inside it. Agents still pointing at it
  lose their retrieval context.
</Callout>

### Path parameters

<ParamField path="id" type="string" required>
  The knowledge base ID
</ParamField>

<CodeGroup>
  ```bash curl theme={null}
  curl -X DELETE https://api.agentic-os.com/api/v1/knowledge-bases/KB_ID \
    -H "Authorization: Bearer $AGENTIC_OS_API_KEY"
  ```

  ```python Python theme={null}
  requests.delete(
      "https://api.agentic-os.com/api/v1/knowledge-bases/KB_ID",
      headers={"Authorization": f"Bearer {API_KEY}"},
  )
  ```

  ```javascript Node theme={null}
  await fetch("https://api.agentic-os.com/api/v1/knowledge-bases/KB_ID", {
    method: "DELETE",
    headers: { Authorization: `Bearer ${API_KEY}` },
  });
  ```
</CodeGroup>

### Response

`204 No Content` on success.
