Registry - Delete value

Declaration

<AMREGISTRY ACTIVITY="delete_value" KEY="text" VALUE="text" />

Related Topics   

Description

Deletes a registry value located in the registry key specified.

IMPORTANT:Incorrectly editing the registry may severely damage your system. Do not edit the Windows registry unless you are confident about doing so.

Practical Usage

Used to delete an unwanted or unused registry value.

Parameters

General

Property

Type

Required

Default

Markup

Description

Registry key

Text

Yes

(Empty)

KEY="HKEY_CURRENT_USER\Software

\NetAuto\Automate\\AMSERVICES"

The full registry path of the key, beginning with a valid registry root, that contains the value to delete. Click the folder icon to use the Registry Viewer to easily navigate to the desired key.

Value name

Text

Yes

(Empty)

VALUE="theValuetoDelete"

The name of the value to delete.

 

Description

Error Causes

On Error

Examples

NOTE:
  • The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
  • Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.

Description

Delete value "bogusValue" in key "HKEY_CURRENT_USER\Software\Automate\BogusKey".

<AMREGISTRY ACTIVITY="delete_value" KEY="HKEY_CURRENT_USER\Software\Automate\BogusKey" VALUE="bogusValue" />