Documents

Delete Document

Permanently delete a document.

This endpoint removes a document from the system. Note that this only deletes the document record and metadata.

Args: document_id: Document ID to delete (path parameter)

Returns: DocumentDeleteResponse: Deletion confirmation containing: - document_id: ID of the deleted document - message: Success confirmation message

Raises: - 404: If the document is not found or doesn't belong to the user

Example: Request: DELETE /api/v3/documents/document_01k4x9m2p7q3r5sa Headers: {"Authorization": "Bearer <api_key>"} Response: { "document_id": "document_01k4x9m2p7q3r5sa", "message": "Document Deleted Successfully" }

delete/api/v3/documents/{document_id}

Request

  • Base URL
    https://api.nugen.in
  • Auth
    HTTP bearer

Path parameters

document_idstring required

ID of the document, returned when it was uploaded

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_idstring required

document id

messagestring required

Deletion Message

Example response

{
  "document_id": "document_01k4x9m2p7q3r5s8",
  "message": "Document document_01k4x9m2p7q3r5s8 has been successfully deleted."
}

Changes

No recorded changes to this operation across all 1 revision of this API.