Skip to main content
DELETE
Delete a retrieval document

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project ID or slug.

retrieval_document_id
string<uuid>
required

Retrieval document ID.

Query Parameters

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.

Pattern: ^[a-f0-9]{64}$

Response

The record was deleted.

id
string
required

ID of the record the request deleted.

status
enum<string>
required

What the API accepted.

Available options:
deleted