Share via


IRegistryTools2.DeleteRegistryKeyFromCurrentUserRoot(String) Method

Definition

Deletes the specified registry key and all subkeys in the HKCU root Registry

public:
 bool DeleteRegistryKeyFromCurrentUserRoot(System::String ^ regKeyPath);
public bool DeleteRegistryKeyFromCurrentUserRoot (string regKeyPath);
abstract member DeleteRegistryKeyFromCurrentUserRoot : string -> bool
Public Function DeleteRegistryKeyFromCurrentUserRoot (regKeyPath As String) As Boolean

Parameters

regKeyPath
String

Path to the registry key in the format key\subkey\subsubkey

Returns

True if removed, or false if error

Applies to