Do you have malware or something that created a registry key that you weren't able to delete? Well fear no more! There are a couple solutions to this on the Internet, but I will give you my solution that is as simple as pie and should allow you to delete the stubborn registry key.
First and foremost, if you aren't sure if the key is being used or not, give RegScanner a try and see if it has been accessed recently or not.
http://www.nirsoft.net/utils/regscanner.html
Now for the best little tool I have ever found. This little baby will run things as a system user which as you can expect will give you great power. And like Richard Parker said to Peter Parker, "with great power comes great responsibility."
The tool's name is Runassystem. You can use it to run the registry as a system user, thereby giving you the power to hopefully deleting those stubborn registry keys. The tool is located at this website
http://www.qwertylab.com/freetools.aspx
Once you run the tool you will have to enter the path to regedit. But who the hell knows that! Not a problem! It's C:\Windows\System32\regedt32.exe
That is the path you would enter in Runassystem to run the registry as a system user. Your path may be different depending on OS. Now just search the registry for that stubborn registry key that won't delete, right click the little bugger and select delete.
I shouldn't have to remind you that you should make a system restore point and/or a registry backup before you make changes to the registry.
There is another tool called Regassassin by Malwarebytes, but that didn't work for me and Runassystem did. If you want to try regassassin, then all you need to do is right click the stubborn registry key, click copy and paste that path in regassassin.
Happy editing!