win32api.RegDeleteKey
RegDeleteKey(key, subKey)
Deletes the specified key. This method can not delete keys with subkeys.
Parameters
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
Comments
If the method succeeds, the entire key, including all of its values, is removed. If the method fails, and exception is raised.
Win32 API References