Skip to main content
DELETE
/
extractions
/
documents
/
{documentId}
Delete Document
curl --request DELETE \
  --url https://api.raydocs.com/extractions/documents/{documentId} \
  --header 'Authorization: Bearer <token>'

Authentication & Scope

Requires the sessions-write ability.
Deleting a document will also remove its chunks and any extraction data derived from it.

Request

DELETE /extractions/documents/880e8400-e29b-41d4-a716-446655440000 HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
documentIduuidYesThe document ID

Response

204 No Content – Document successfully deleted. 404 Not Found – Document does not exist or you don’t have access.

Authorizations

Authorization
string
header
required

Personal Access Token

Path Parameters

documentId
string<uuid>
required

Response

Deleted