CRegistry:DeleteKey
The DeleteKey method deletes the entore key or one of its values from the system registry.
CRegistry:DeleteKey() CRegistry:DeleteKey( sValName ) where sValName is the name of the value being deleted from the key. If no value name is specified, the entire key, including all its values, is deleted. |
The following script deletes the entire registry key named sKeyName:
|
|
|
-- open the key and create a CRegistry object |
|
-- delete the "MyVal" value from the key |
The next script opens the key named sKeyName key and deletes two of its values:
|
-- open the key and create a CRegistry object |
|
-- delete the "MyVal" value from the key |
|
-- delete the "AnotherVal" value from the key |