Skip to content

DeleteKey - cRegistry

Deletes a Key from the Registry

Type: Function
Return Data Type: Boolean

Parameters

Parameter Type Description
sKeyName String The name of the Key to delete

Syntax

Function DeleteKey String sKeyName Returns Boolean

Call Example

Get DeleteKey sKeyName to BooleanVariable

Description

The DeleteKey function deletes a Key and all descendant Subkeys and Values.

To test whether a Key exists, call KeyExists.

If a blank ("") key is passed, nothing is deleted and False is returned.

Return Value

Returns True if the Key was successfully deleted, else it returns False.