Delete generatefunc