Skip to main content
DELETE
/
api
/
v3
/
documents
/
{id}
Delete Document
curl --request DELETE \
  --url https://api.nugen.in/api/v3/documents/{id} \
  --header 'Authorization: Bearer <token>'
{
  "document_id": "doc-abc123",
  "message": "Document doc-abc123 has been successfully deleted."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

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.

document_id
string
required

document id

Example:

"doc-abc123"

message
string
required

Deletion Message

Example:

"Document doc-abc123 has been successfully deleted."