task delete function

Create, a task delete function