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