Delete retrieval document. Requires project.knowledge.write; API keys also need delete scope.
Arguments
expected_revisionstringDelete 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_referencestring · min length 1Project ID or slug.
retrieval_document_idstring · uuidrequiredRetrieval document ID.
confirmbooleanrequiredMust be true to delete the record.
Responses
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 } }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"ok\":true}" } ], "structuredContent": { "ok": true } }}The tool ran; its output is result.structuredContent.