Core Function RegDelete
From Sputnik Wiki
RegDelete( <key>, <value> )
Contents |
Description
Delete a key or value from the registry.
Parameters
key
The registry key to read.
value
Optional; The value to delete.
Return Value
Success: Returns true.
Failure: Returns false.
Remarks
A registry key must start with:
"HKEY_LOCAL_MACHINE" or "HKLM"
"HKEY_USERS" or "HKU"
"HKEY_CURRENT_USER" or "HKCU"
"HKEY_CLASSES_ROOT" or "HKCR"
"HKEY_CURRENT_CONFIG" or "HKCC"
Example
Delete a key
RegDelete(@"HKCU\SOFTWARE\Test");
Delete a value
RegDelete(@"HKCU\SOFTWARE\Test", "myValue");