We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Cannot delete a registry hive

Visual Studio 2008

An attempt has been made to delete a registry hive. Hives are top-level registry keys, such as HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE, and cannot be deleted.

To correct this error

  • Check the registry key you are attempting to delete, and make sure you are supplying the correct path.