Registry.DeleteValue

Registry.DeleteValue ( 

number MainKey,

string SubKey,

string Value )

Example 1

Registry.DeleteValue (HKEY_LOCAL_MACHINE, "Software\\My Application", "InstallPath");

Deletes the value "InstallPath" from the sub key HKEY_LOCAL_MACHINE\Software\My Application.

Example 2

Registry.DeleteValue (2, "Software\\My Application", "InstallPath");

Deletes the value "InstallPath" from the sub key HKEY_CURRENT_USER\Software\My Application.

See also:  Related Actions