public static void removeCatalogRef(Catalog catalog, String name) {
		if (catalog.catalogs.containsKey(name)) {
			catalog.catalogs.remove(name);
			try {
				catalog.write();
			} catch (IOException ex) {
				Util.warnMsg("Unable to remove catalog: " + ex.getMessage());
			}
		}
	}
Finds the nearest catalog file that contains a catalog ref with the given
name and removes it

@param name Name of catalog ref to remove
src/main/java/dev/jbang/catalog/CatalogUtil.java