# veryfront__delete_retrieval_document

Delete retrieval document. Requires project.knowledge.write; API keys also need delete scope.

Risk: mutating.

## Arguments

| Name                    | Type    | Required | Description                                                                                                                                                                                                                                                   |
| ----------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `expected_revision`     | string  |          | Delete only this observed revision. A changed record is a conflict; a missing record is not\_found. Delete the record before removing its chunks, as ragStore().removeDocument() does, so a concurrent refresh cannot publish through a still-visible record. |
| `project_reference`     | string  |          | Project ID or slug.                                                                                                                                                                                                                                           |
| `retrieval_document_id` | string  | Yes      | Retrieval document ID.                                                                                                                                                                                                                                        |
| `confirm`               | boolean | Yes      | Must be true to delete the record.                                                                                                                                                                                                                            |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_retrieval_document",
    "arguments": {
      "retrieval_document_id": "<retrieval_document_id>",
      "confirm": "<confirm>"
    }
  }
}
```
