Udostępnij za pośrednictwem


Cannot delete a registry hive

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.

See Also

Tasks

How to: Delete a Registry Key in Visual Basic

Concepts

Common Registry Tasks

Reference

My.Computer.Registry Object