DeleteKey method

The DeleteKey method removes the specified key from the Registry.  

BOOL DeleteKey(
 BSTR Name// The name of the key

  Name     [in] This is the key that should be removed from the Registry.
Return values
  The DeleteKey method returns TRUE if the specified key was removed successfully and FALSE otherwise.

See also
DeleteValue method, CreateKey method