public static bool DeleteRegistryKeyValue(RegistryHive hive, string path, string name) => RegistryKey.OpenBaseKey(hive, RegistryView.Registry64).OpenWritableSubKeySafe(path, key => { key.DeleteValue(name, true); return true; });