added deleteFiles and deleteDirectories methods