Skip to content

Delete Document

Delete a document from Last Mile Intelligence.

deleteDocument

document

ParameterTypeRequiredDefaultDescription
Document IDstringYes-The ID of the document to delete
{
"success": true,
"message": "Document deleted successfully",
"documentId": "doc_abc123"
}
{
"success": false,
"error": "Document not found",
"documentId": "invalid_id"
}
  • 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