System.Registry.deleteKey() This page was last modified over 30 day(s) ago and has 1 comment(s)


Back to System.Registry Class Summary

Availability
Windows

Usage
mdm.System.Registry.deleteKey(keyBranchID:Number):Void

Parameters
keyBranchID:Number - Branch key ID

Returns
Nothing

Description
Deletes the specified registry key.

Notes
The key branch ID can be:

'1' - HKEY_CLASSES_ROOT
'2' - HKEY_CURRENT_USER
'3' - HKEY_LOCAL_MACHINE
'4' - HKEY_USERS
'5' - HKEY_CURRENT_CONFIG

Example Code
mdm.System.Registry.deleteKey(2, "\\SOFTWARE\\Key\\SubKey");

mdm.System.Registry Class Example Downloads
No Example Downloads Available


User Comment by Claudius Iacob on 21st January 2011 - 22:55
The second argument is missing, as shown by the example. The method signature should be something like:
mdm.System.Registry.deleteKey (keyBranchID : Number, keyPath : String) : void

The "Parameters" section should also contain:
keyPath : String - The path to the key to delete.

Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page