DELETE /api/tasks/{task_id}
Permanently deletes a task. Regular users can only delete tasks they own; admin users can delete any task.
Authentication
Path Parameters
The unique ID of the task to delete.
Response
200 OK — The task was successfully deleted.Always
true for successful responses.Confirmation message:
"Tarea eliminada con exito".Error Responses
| Status | Description |
|---|---|
403 Forbidden | The authenticated user does not own this task and is not an admin. |
404 Not Found | No task with the given task_id exists. |