{
  "message": "Document deleted successfully"
}

Delete Document

Delete a document and its associated files. This action cannot be undone.

Request

Headers

Authorization
string
required

Bearer token authentication. See our Authentication guide for more details. Example: Bearer YOUR_API_KEY

Path Parameters

id
string
required

The unique identifier of the document to delete

Example Request

curl -X DELETE https://api.doctly.ai/api/v1/documents/123e4567-e89b-12d3-a456-426614174000 \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

message
string

Success message confirming the deletion

Example Responses

{
  "message": "Document deleted successfully"
}

Deleting a document will remove both the original file and any processed outputs. This action cannot be undone.