Allow workflows to delete or mark tasks complete

I am fairly new to Hubspot, but it would be great to set a goal with the task at the time of creating it that is similar to how you can set a goal in a workflow. Once the goal is met, the task could be marked complete.