private static boolean deleteDir(File dir) {
		File[] files = dir.listFiles();
		if (files == null) {
			return dir.delete();
		}

		for (File file : files) {
			if (file.isDirectory()) {
				// use a dummy monitor as not to ruin our progress
				if (!deleteDir(file)) {
					Msg.debug(ProjectTestUtils.class, "Unable to delete directory: " + file);
					return false;
				}
			}
			else {
				if (!file.delete()) {
					if (!ignoredDeleteNames.contains(file.getName())) {
						Msg.debug(ProjectTestUtils.class, "Unable to delete file: " + file);
						return false;
					}

				}
			}
		}

		return dir.delete();
	}
Remove entire project.  Note: this will not remove the parent <code>directory</code> of
the project.

@param directory directory of the project.
@param name The name of the project to delete
@return True if the project was deleted.
Ghidra/Features/Base/src/main/java/ghidra/test/ProjectTestUtils.java