Guys why function destroy can't work?

oops sry codepen just gave me an autosave… now i code back the question