public static void deleteFiles(File dir) throws IOException {
		for (File file : dir.listFiles()) {
			if (file.isDirectory()) {
				deleteFiles(file);
				return;
			}
			Files.delete(file.toPath());
		}
		Files.delete(dir.toPath());
	}