You can delete a task in the Project View only if it is not assigned to any user and is not associated with any skills.
If you want to delete a task, first remove all task assignments from the Salesforce List View. Then, remove any skills associated with the task (if applicable), and finally delete the task.