Not passing in task id to delete function properly