diff --git a/winregistry.py b/winregistry.py index 5d5e1df..9316bf2 100644 --- a/winregistry.py +++ b/winregistry.py @@ -226,19 +226,8 @@ def create_key( def delete_key( self, sub_key: str, - recursive: bool = False, ) -> None: - if not recursive: - winreg.DeleteKey(self._hkey, sub_key) - return - # handle = self._get_handler(name, KEY_READ, key_wow64_32key) - # keys_num, values_num, modify = QueryInfoKey(handle) # pylint: disable=unused-variable - # for key_i in range(0, keys_num): - # key = EnumKey(handle, key_i) - # self.delete_key_tree(f"{name}\\{key}", key_wow64_32key) - # handle.Close() - # self.delete_key(name, key_wow64_32key) - + winreg.DeleteKey(self._hkey, sub_key) self._auto_refresh() def read_value(