Delete Registry Key VI

Owning Palette: Windows Registry Access VIs

Requires: Base Development System (Windows)

Deletes the specified key or subkey.

Caution  Incorrectly modifying the registry can damage Windows or prevent you from starting Windows.

Example

 Add to the block diagram  Find on the palette
refnum is a handle to the open key.
subkey is the name of a subkey of root key. A beginning backslash character \ might cause an error.
registry view specifies whether to delete a 32-bit key or a 64-bit key on a 64-bit operating system.

0Default (default)—LabVIEW selects the type of key based on the version of LabVIEW that is installed. For example, if LabVIEW (64-bit) is installed, LabVIEW deletes a 64-bit key.
8KEY_WOW64_32KEY—Deletes a 32-bit key.
9KEY_WOW64_64KEY—Deletes a 64-bit key.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
refnum out is a handle to the open key.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the Windows Registry Manipulation VI in the labview\examples\Connectivity\Windows Registry Access directory for an example of using the Delete Registry Key VI.

 Open example  Find related examples