implement method deleteDirectory , need testing his