Registry - Delete Key

Declaration

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

Description: Delete the specified key from the registry. Any sub-keys will also be deleted.  

WARNING: Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on your computer.

Practical Usage

Commonly used delete unused or unneeded registry keys.

General

Property

Type

Required

Default

Markup

Description

Registry key

Text

Yes

(Empty)

KEY="HKEY_CURRENT_USER\Software \NetAuto\AutoMate\\AMSERVICES"

The registry key 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 tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.

Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)

On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)

Example

The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

Description: Delete registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Network Automation\AutoMate 10\TaskService\Temp".

<AMREGISTRY ACTIVITY="delete_key" KEY="HKEY_LOCAL_MACHINE\SOFTWARE\
Network Automation\AutoMate 10\TaskService\Temp" />