Delete Registry Variable
Deletes a specified registry variable from the local machine. This can be useful for cleaning up registry entries that are no longer needed or for removing sensitive information.
Parameters
Section titled “Parameters”Registry Root
Section titled “Registry Root”Required — Default: HKEY_LOCAL_MACHINE
Select the root registry hive containing the variable to delete Allowed values: HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, HKEY_CLASSES_ROOT, HKEY_USERS.
Registry Key
Section titled “Registry Key”Required — Default: SOFTWARE\Sample
Full path of the registry key, starting after the root hive (e.g., SOFTWARE\Sample)
Registry Value Name
Section titled “Registry Value Name”Required
The name of the registry value to delete
Details
Section titled “Details”- Category: Registry
- Brick ID:
Registry-Delete-Variable
Raw JSON definition
Section titled “Raw JSON definition”{ "category": "registry", "description": "Deletes a specified registry variable from the local machine. This can be useful for cleaning up registry entries that are no longer needed or for removing sensitive information.", "developerVendor": "CapaSystems A/S", "displayName": null, "id": "Registry-Delete-Variable", "name": "Delete Registry Variable", "parameters": [ { "defaultValue": null, "defaultValueObject": { "id": "HKEY_LOCAL_MACHINE", "name": "HKEY_LOCAL_MACHINE" }, "description": "Select the root registry hive containing the variable to delete", "id": "Registry_Root", "name": "Registry Root", "regExValidation": "", "required": true, "type": "ComboBox", "value": null, "values": [], "valuesObject": [ { "id": "HKEY_LOCAL_MACHINE", "name": "HKEY_LOCAL_MACHINE" }, { "id": "HKEY_CURRENT_USER", "name": "HKEY_CURRENT_USER" }, { "id": "HKEY_CLASSES_ROOT", "name": "HKEY_CLASSES_ROOT" }, { "id": "HKEY_USERS", "name": "HKEY_USERS" } ] }, { "defaultValue": "SOFTWARE\\Sample", "defaultValueObject": null, "description": "Full path of the registry key, starting after the root hive (e.g., SOFTWARE\\Sample)", "id": "Registry_Key", "name": "Registry Key", "regExValidation": "", "required": true, "type": "TextBox", "value": null, "values": [], "valuesObject": null }, { "defaultValue": "", "defaultValueObject": null, "description": "The name of the registry value to delete", "id": "Registry_Value_Name", "name": "Registry Value Name", "regExValidation": "", "required": true, "type": "TextBox", "value": null, "values": [], "valuesObject": null } ], "powershell": { "base64Encoded": true, "function": "RnVuY3Rpb2..." }, "type": "powerbrick", "version": "2026.7.2.1"}