Delete Registry Key
Deletes a specified registry key from the Windows registry. You can specify the root registry hive and the full path of the registry key to be deleted. This can be useful for cleaning up registry entries that are no longer needed or for removing keys that may be causing issues.
Parameters
Section titled “Parameters”Registry Root
Section titled “Registry Root”Required — Default: HKEY_LOCAL_MACHINE
Select the root registry hive containing the key 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)
Details
Section titled “Details”- Category: Registry
- Brick ID:
Registry-Delete-Key
Raw JSON definition
Section titled “Raw JSON definition”{ "category": "registry", "description": "Deletes a specified registry key from the Windows registry. You can specify the root registry hive and the full path of the registry key to be deleted. This can be useful for cleaning up registry entries that are no longer needed or for removing keys that may be causing issues.", "developerVendor": "CapaSystems A/S", "displayName": null, "id": "Registry-Delete-Key", "name": "Delete Registry Key", "parameters": [ { "defaultValue": null, "defaultValueObject": { "id": "HKEY_LOCAL_MACHINE", "name": "HKEY_LOCAL_MACHINE" }, "description": "Select the root registry hive containing the key 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 } ], "powershell": { "base64Encoded": true, "function": "RnVuY3Rpb2..." }, "type": "powerbrick", "version": "2026.7.2.1"}