deleteDir function  name fix