Key cannot be deleted because it has subkeys

The key cannot be deleted because it has subkeys.

To correct this error

  • Determine and delete the specified key's subkeys before attempting this operation.

See Also

Tasks

How to: Delete a Registry Key in Visual Basic

Troubleshooting: Manipulating the Registry

Concepts

Reading from and Writing to the Registry Using My

Reference

DeleteSubKey