You are looking at documentation for an older release. Not what you want? See the current release documentation.
Select from the dropdown menu:

Click in the confirmation message to delete the task.

This action is available to the task creator and the project manager only.