REST: deletes a task