A warning message box will appear confirming your actions. Now Place a Check next to Include inheritable permissions from this object’s parent & Replace all child object permissions with inheritable permissions from this object. Place a Check next to Replace owner on subcontainers and objects and Click Apply. Select your user name in the list under Change owner to. Click Advanced in it.Ĭlick on the Owner tab.
Now Click Permissions from the pop up menu.Ī dialog box will open. Now in the left pane, Navigate to the key you are unable to delete.
Simply Press and Hold the Windows key and Press R. Here we will use the same program we use to make changes in the Windows Registry called the Windows Registry editor.
Method 1: Through Windows Registry Editor For Windows 7 and Earlier Versions So what happens if you have to delete a registry key in order for a fix to apply to a problem in your Windows that’s really spinning your head? Instead every time you try to delete it, you get the following error “ Cannot delete key: Error while deleting key“.Īs said before, it is just a security measure taken by Windows to protect your Windows and can be easily bypassed using any of the following methods.