win32api.RegDeleteKeyEx

RegDeleteKeyEx(Key, SubKey, samDesired, Transaction)

Deletes a registry key from 32 or 64 bit registry view

Parameters

Key : PyHKEY/int

Registry key or one of win32con.HKEY_* values

SubKey : PyUnicode

Name of subkey to be deleted.

samDesired=0 : int

Can be KEY_WOW64_32KEY or KEY_WOW64_64KEY to specify alternate registry view

Transaction=None : PyHANDLE

Handle to a transaction as returned by win32transaction::CreateTransaction

Comments

Accepts keyword args.

Requires 64-bit XP, Vista, or later.

Key to be deleted cannot contain subkeys

If a transaction handle is specified, RegDeleteKeyTransacted is called

Win32 API References

Search for RegDeleteKeyEx at msdn, google or google groups.

Search for RegDeleteKeyTransacted at msdn, google or google groups.