def clear(self): handle = self.handle while 1: resp = win32.RegEnumValue(handle, 0, False) if resp is None: break win32.RegDeleteValue(handle, resp[0])
def __delitem__(self, name): win32.RegDeleteValue(self.handle, name)