Add the delete function of task