# CFREGISTRY ACTION="Delete"

Use CFREGISTRY with the Delete action to delete a registry key or value.

### Syntax

    <CFREGISTRY ACTION="Delete"
        BRANCH="branch"
        ENTRY="keyorvalue">

#### BRANCH

Required. Specifies one of the following:

- For key deletion -- The name of the registry key to be deleted. To delete a key, do not specify ENTRY.
- For value deletion -- The name of the registry branch containing the value to be deleted. To delete a value, you must specify ENTRY.

#### ENTRY

Required for value deletion. The value to be deleted.

### Usage

If you delete a key, CFREGISTRY also deletes values and subkeys defined beneath the key.

### Example

    <!--- This example uses CFREGISTRY with the Delete Action to remove
          a key from the registry  --->
    <HTML>
    <HEAD>
    <TITLE>CFREGISTRY ACTION="Delete"</TITLE>
    </HEAD>
    <BODY>
    <CFREGISTRY ACTION="Delete"
      BRANCH="HKEY_LOCAL_MACHINE\Software\cflangref\tempkey"
      ENTRY="LastCFM01">
    <H1>CFREGISTRY ACTION="Delete"</H1>
    </BODY>
    </HTML>