code: public static void delete(FileSystem fs, String name) throws IOException {
      Path dir = new Path(name);
      Path data = new Path(dir, DATA_FILE_NAME);
      Path index = new Path(dir, INDEX_FILE_NAME);
  
      fs.delete(data, true);
      fs.delete(index, true);
      fs.delete(dir, true);
    }
docs: Deletes the named map file.