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.
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
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 \NetAuto\Automate\\AMSERVICES" |
The registry key to delete. Click the folder icon to use the Registry Viewer to easily navigate to the desired key. |
Example
- 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 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" /> |