Delete Document
Delete a document from Last Mile Intelligence.
Operation
Section titled “Operation”deleteDocument
Resource
Section titled “Resource”document
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Document ID | string | Yes | - | The ID of the document to delete |
Response
Section titled “Response”Success
Section titled “Success”{ "success": true, "message": "Document deleted successfully", "documentId": "doc_abc123"}{ "success": false, "error": "Document not found", "documentId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Document Not Found: Document with specified ID does not exist
- Permission Denied: API token lacks permission for this operation