Cancel or delete a task

Cancels a pending task or deletes a completed task by its unique identifier. This operation cannot be undone.