To delete a task, right-click on the task itself and then click on Delete.
You may also delete a task by going through the task properties, clicking on the options icon, and then selecting Delete.
If you change your plan and would like to find and restore the task that had been deleted please follow the guide How to Find and Restore Deleted Task.