RegistryKey.DeleteValue Method (String)
Deletes the specified value from this key.
Assembly: mscorlib (in mscorlib.dll)
name is not a valid reference to a value.
The user does not have the permissions required to delete the value.
The RegistryKey being manipulated is closed (closed keys cannot be accessed).
The RegistryKey being manipulated is read-only.
This code example is part of a larger example provided for the RegistryKey class.