Borrowing from the DelKey section of the manual:
Quote:

This call fails if any subkeys exist within the specified subkey.
Use DelTree if you want to delete a subkey that contains subkeys.


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.