delete tasks functionality