private boolean removeExtension(ExtensionDetails extension) {

		if (extension == null) {
			log.error("Extension to uninstall cannot be null");
			return false;
		}

		File installDir = extension.getInstallDir();
		if (installDir == null) {
			log.error("Extension installation path is not set; unable to delete files");
			return false;
		}

		if (FileUtilities.deleteDir(installDir)) {
			extension.setInstallDir(null);
			return true;
		}

		return false;
	}
Removes any extensions that have already been marked for removal.  This should be called
before any class loading has occurred.
Ghidra/Framework/Generic/src/main/java/ghidra/util/extensions/Extensions.java