def delete_key(path: str, hive: int = winreg.HKEY_CURRENT_USER) -> None:
        """
        Deletes the desired key and all other subkeys at the given path.
        """
        open_key = winreg.OpenKey(hive, path)
        subkeys = list_keys(path)

        if len(subkeys) > 0:
            for key in subkeys:
                delete_key(path + "\\" + key)
        winreg.DeleteKey(open_key, "")

        Deletes the desired key and all other subkeys at the given path.
        
context_menu/windows_menus.py