Skip to main content

Delete Registry Key Action

Remove a Windows registry key value as part of an automation pipeline.

Updated this week

Introduction

Remove a registry key value from a Windows device during an automation run. Use this action to clean up application settings, remove leftover configuration from uninstalled software, or enforce policy by eliminating specific keys.

πŸ–₯️ PLATFORM NOTE: This action is Windows-only. Registry keys don't exist on macOS or Linux.


Delete Registry Key Action

From the automation pipeline in edit mode, click + and select Delete registry key from the System category.

Action Picker - Delete Registry Key Action

The action panel opens with two configuration fields.

Delete Registry Key Action

Path

The full path to the registry key containing the value to delete. Required.

Example: HKLM:\Software\Contoso\Settings

Common hive prefixes:

Prefix

Full hive

HKLM:

HKEY_LOCAL_MACHINE

HKCU:

HKEY_CURRENT_USER

HKCR:

HKEY_CLASSES_ROOT

Click (x) to insert a variable, system variable, or custom field reference. The value resolves at runtime before the action executes.

Name

The name of the value to delete within the registry path. Required.

Example: DisableTelemetry, InstallDir

Click (x) to insert a variable, system variable, or custom field reference.

⚠️ WARNING: This action permanently deletes the specified registry value. Deleting critical system or application keys can cause instability or software failures. Test on a non-production device before deploying broadly.


Conditions

The Conditions section lets you restrict when this action runs based on device attributes or the outcome of a previous action.

See Action Conditions for the full reference on condition types, operators, and values.


Additional Options

Expand Additional options for action name, failure behavior, output variable assignment, retries, and the enabled toggle.

See Actions Overview for the full reference on additional options available on every action.


FAQ

  • What if the key or value doesn't exist? The action succeeds β€” Level treats a missing key or value as a no-op rather than an error.

  • Does this delete the entire registry path or just the named value? Only the named value is deleted. The parent key path remains intact.

  • Who can add or modify Delete Registry Key actions? Technicians with permission to edit automations in the relevant group. See Workspace β†’ Permissions for access control configuration.

Did this answer your question?