Unable to delete certain registry keys : Error while deleting key

Speed Up My PC

If when you try to delete a registry key win Windows 7, Windows Vista or Windows Server 2008, you are unable to delete it and you get an error message: Error while deleting key, then this article may interest you.

This can be caused if you attempt to delete a registry key that contains embedded null characters. These characters are not visible when viewing the registry entry.

To delete a registry key that contains an embedded null character, you must first replace the null character with another character.

You can accomplish this by using the RegDelNull tool from Sysinternals.

This command-line utility searches for and allows you to delete Registry keys that contain embedded-null characters and that are otherwise undeleteable using standard Registry-editing tools. Note: deleting Registry keys may cause the applications they are associated with to fail.

Source: KB2021860.

Posted by on , in Category Windows with Tags
Anand aka HappyAndyK is an end-user Windows enthusiast, a Microsoft MVP in Windows Desktop Experience since 2007, and the Admin of TheWindowsClub.com, TheGeeksClub.com & WinVistaClub.com. Creating a System Restore Point before trying out a new software or a tweak is always recommended.
  • eee

    This applies to XP and 2000 too, not just 7, Vista and Server 2008.

  • Guest

    This post is not helpful to those who do not have an extensive IT background. You might want to post steps and examples for the uninitiated. I would but there is no way for me to do it here.