Added a deleteDir() method