# Remove a document from a knowledge base

Source: https://docs.usetone.ai/reference/knowledge/removeDocument

> The index is rebuilt without it.

`DELETE /v1/knowledge-bases/{id}/documents/{documentId}`
The index is rebuilt without it. Until that build succeeds, the old index keeps serving.

Requires the `write` scope.

## Parameters

| Name | In | | Meaning |
|---|---|---|---|
| `id` | path | required | The knowledge base's id. |
| `documentId` | path | required | The document's id. |

## Response



### Example response

```json
{
  "data": null
}
```
