|
Action |
Deletes the specified subkey from the registry.
|
Syntax |
DELKEY ("subkey")
|
Parameter |
Subkey
A string that specifies the name of the subkey you want to delete.
|
Remarks |
This call fails if any subkeys exist within the specified subkey. Use DELTREE if you want to delete a subkey that contains subkeys.
|
Returns |
|
0 |
Subkey deleted |
|
Error code |
Function failed |
|
Example |
$ReturnCode = DelKey("HKEY_CURRENT_USER\EZReg")
If $ReturnCode = 0
? "Key deleted...."
Endif