Skip to content

Delete a document (soft delete)

DELETE
/api/v1/documents/{id}
curl --request DELETE \
--url https://your-orimora-instance.example.com/api/v1/documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Moves the document to trash. Hard-delete is not exposed via the API.

id
required
string format: uuid

Deleted document ID

Media type application/json
object
id
required
string format: uuid
Example generated
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Not found

Media type application/json
object
error
required

Human-readable error message

string
Example generated
{
"error": "example"
}