The project owner can cancel the task anytime if needed.
To cancel the task open project details. On the bottom part of the screen locate the Pending Tasks list. Find the task that needs to be canceled and click on the x button. The task will be deleted immediately.