Microsoft SDK for Java

RegistryKey.deleteSubKey

Deletes the specified subkey.

Syntax

public void deleteSubKey( String subkey )

Parameters

subkey

A String object that represents the subkey to delete.

Exceptions

WFCException thrown if the subkey contains any child subkeys.

Remarks

Use the deleteSubKey method to remove a subkey from the registry. To delete a tree of subkeys, use the deleteSubKeyTree method. To delete a value assigned within a subkey, use the deleteValue method.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.