/** * Helper method to remove a path if it exists. * * @param conf Configuration to load FileSystem from * @param path Path to remove * @throws IOException */ public static void deletePath(Configuration conf, String path) throws IOException { deletePath(conf, new Path(path)); }