IRegistryTools2.DeleteRegistryKeyFromLocalMachineRoot(String, Boolean) Method

Definition

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

public bool DeleteRegistryKeyFromLocalMachineRoot (string regKeyPath, bool use64Bit = false);
abstract member DeleteRegistryKeyFromLocalMachineRoot : string * bool -> bool
Public Function DeleteRegistryKeyFromLocalMachineRoot (regKeyPath As String, Optional use64Bit As Boolean = false) As Boolean

Parameters

regKeyPath
String

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

use64Bit
Boolean

if true, it uses the 64 bit registry, otherwise 32 bit is used

Returns

True if removed, or false if error

Applies to