The simplest way to delete a corrupt registry key

keyswindows-registry

I have a registry key that produces an error when selected in regedit. It may have multiple but unknown subkeys. regeidt isn't up to the task what is the best way to wipe out this key and anything within it?

Best Answer

If you don't feel up to hacking together a script Sysinternals RegDelNull is another option for deleting "difficult" registry keys. And as ever, handle with care, like anything that messes directly with the registry it's a loaded gun and it can do a lot of damage.