Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

DelTree( )

Action: Deletes a subkey from the registry, including all the subkeys contained in the specified subkey.
Syntax: DELTREE ("subkey")
Parameters: Subkey

Specifies the subkey to be deleted from the registry.

Remarks: When this function runs, no confirmation is asked nor warning given.
0 Subkey deleted
Error code Function failed  
See Also: AddKey( ), DelKey( ), ReadType( ), ReadValue( ), WriteValue( )

$ReturnCode = DelTree("HKEY_CURRENT_USER\EZReg")
If $ReturnCode = 0
  ? "Key deleted...."