RegistryKey.deleteSubKeyTree

Overview | Methods | This Package | All Packages

RegistryKey.deleteSubKeyTree

Recursively deletes a subkey and any child subkeys.

Syntax

public void deleteSubKeyTree( String subkey )

Parameters

subkey

A String object that represents the subkey to delete.

Remarks

Use the deleteSubKeyTree method to delete an entire tree of subkeys from the registry. To ensure that an exception does not occur when deleting a key, use the deleteSubKeyTree method instead of the deleteSubKey method, which throws an exception if a subkey contains child subkeys.

See Also   deleteSubKey, deleteValue