# Delete a retrieval document

Tool: `veryfront__delete_retrieval_document`

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

## 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 · min length 1 |          | Project ID or slug.                                                                                                                                                                                                                                           |
| `retrieval_document_id` | string · uuid         | Yes      | Retrieval document ID.                                                                                                                                                                                                                                        |
| `confirm`               | boolean               | Yes      | Must be true to delete the record.                                                                                                                                                                                                                            |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_retrieval_document",
    "arguments": {
      "retrieval_document_id": "00000000-0000-0000-0000-000000000000",
      "confirm": false
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"ok\":true}"
      }
    ],
    "structuredContent": {
      "ok": true
    }
  }
}
```
