cfregistry action = "delete"

Description

Used with the delete action to delete a registry key or value.

Category

Variable manipulation tags

Syntax

<cfregistry action = "delete"
  branch = "branch"
  entry = "keyorvalue"> 

See also

cfcookie, cfparam, cfsavecontent, cfschedule, cfset

Attributes

Attribute
Description
branch
Required. 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>