Registry - Delete key

Declaration

<AMREGISTRY ACTIVITY="delete_key" KEY="text" />

Related Topics   

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. Do not edit the Windows registry unless you are confident about doing so.

Practical usage

Commonly used delete unused or unneeded registry keys.

Parameters

General

Property Type Required Default Markup Description
Registry key Text Yes (Empty) KEY="HKEY_CURRENT_USER\Software\Fortra\Automate Desktop\AMSERVICES" The registry key to delete. Click the folder icon to use the Registry Viewer to easily navigate to the desired key.

Description

Error Causes

On Error

Example

NOTE:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

Description  

This sample task deletes a registry key.

Copy
<AMREGISTRY ACTIVITY="delete_key" KEY="HKEY_LOCAL_MACHINE\SOFTWARE\AutoMate\<Automate Desktop or Automate> <product version number>\TaskService\Temp" />