Delete Registry Key Action

The Delete Registry Key action deletes a defined registry key and all its values.  To use this action you select the registry hive and define the path to the key that is to be removed.

This action will not remove sub keys.  The key being removed cannot contain sub keys.  If the key contains sub keys, this action will fail.

If the defined key does not exist, no errors are raised.

Use caution when deleting registry keys.

 

Prepare Stage

During the prepare stage, this action checks delete permissions of the defined registry location.

Execute Stage

This action backs up the defined registry key, then deletes if it exists.

Cleanup Stage

No action taken.

Rollback Stage

Restores registry key as it was backed up in the execute stage.

 

Delete Registry Key Action Editor

 

Action description – Descriptive text that can be used to identify this particular action in the Actions list.

 

Key – Defines the registry hive where the key is located.

 

Type to specify the key – The sub path under the defined hive where the key is located.  The initial \ in the path can be omitted or not.

          Ex: \MyKeys\Key1

              MyKeys\Key1 

 

Note:  This action will not delete a key with sub keys.  You must delete each sub key in the branch individually.

 

Expansion variables can be used to set the key sub path.

 

See Also