RegistryKey: DeleteSubKey

DeleteSubKey

Deletes a node from the Windows Registry.



 Public Sub DeleteSubKey(
	  ByRef SubKey As String,
	  Optional ByVal ThrowOnMissingSubKey As Boolean = True )

Parameters

SubKey
[ByRef] String. The node to be deleted.
ThrowOnMissingSubKey
[ByVal] Optional. Boolean. Whether to throw an exception if the node was not found.  

Default: True

Remarks

The key node must be empty to be deleted. No sub keys or values are deleted. To delete all SubKeys use the DeleteSubKeyTree to recursively delete SubKeys and values.

See Also

Project CorLib Overview

Class RegistryKey Overview