Company logoTrust Center Documentation
API v1 Reference/Documents/Id

Delete document

Delete a document permanently. This action cannot be undone. The document and its associated file will be removed from the system.

DELETE
/api/v1/documents/{id}
AuthorizationBearer <token>

In: header

Path Parameters

idstring

Document ID

Formatuuid

Response Body

fetch("https://app.orbiqhq.com/api/v1/documents/550e8400-e29b-41d4-a716-446655440000")
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000"
  }
}
{
  "success": false,
  "error": "Invalid document ID."
}
{
  "success": false,
  "error": "Unauthorized access."
}
{
  "success": false,
  "error": "Document not found"
}
{
  "success": false,
  "error": "Method not allowed"
}
{
  "success": false,
  "error": "Failed to delete document."
}

How is this guide?