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

# Delete Knowledge Base

Remove a knowledge base and all its indexed content.

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

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://api.artaios.ai/api/v1/knowledge-bases/kb_123/ \
    -H "x-api-key: YOUR_API_KEY"
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete(
      "https://api.artaios.ai/api/v1/knowledge-bases/kb_123/",
      headers={"x-api-key": "YOUR_API_KEY"}
  )
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.artaios.ai/api/v1/knowledge-bases/kb_123/', {
    method: 'DELETE',
    headers: {
      'x-api-key': 'YOUR_API_KEY'
    }
  });
  ```
</CodeGroup>

## Response

Returns `204 No Content` on success.

<Warning>
  This action permanently deletes the knowledge base and all its indexed content. The source collections and files remain intact.
</Warning>
