Skip to content

Delete Task

Delete a task from Last Mile Intelligence.

deleteTask

task

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