Delete a retrieval document

http
DELETE /projects/{project_reference}/knowledge/retrieval-documents/{retrieval_document_id}

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

Parameters

NameInRequiredDescription
project_referencepathYes
retrieval_document_idpathYesRetrieval document ID.
expected_revisionqueryDelete 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.

Responses

StatusDescription
200The record was deleted.
400invalid_input: invalid ID or expected_revision
401unauthenticated
403forbidden: the credential lacks project.knowledge.write or the delete scope
404not_found: project or retrieval document not found
409conflict: the record changed since expected_revision was read
500internal