deleteDir function var name fix