delete if function is native code