Permanently delete a document.
This endpoint removes a document from the system. Note that this only deletes the document record and metadata.
Args:
id: Document ID to delete (path parameter)
Returns:
DeleteDocumentResponse: Deletion confirmation containing:
document_id: ID of the deleted documentmessage: Success confirmation messageRaises:
HTTPException(404): If the document is not found or doesn’t belong to the user
Example: Request:
DELETE /api/v3/documents/doc-xyz789
Headers: {"Authorization": "Bearer <api_key>"}
Response:
{
"document_id": "doc-xyz789",
"message": "Document Deleted Successfully"
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Returns a confirmation message with the ID of the deleted document. This endpoint permanently deletes the specified document from the system, including its metadata and any associated records. The response confirms the successful deletion by returning the document ID and a success message.