This method of the RegKey class unloads a hive from the registry.
public void unload(String subKey);