# Delete Registry Variable

> Deletes a specified registry variable from the local machine.

Source: https://docs.capaone.com/capaone/application-manager/powerbricks/delete-registry-variable/  
Product: CapaOne — a separate CapaSystems product; do not apply this page to any other.

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

#### 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
*Required* — Default: `SOFTWARE\Sample`

Full path of the registry key, starting after the root hive (e.g., SOFTWARE\Sample)

#### Registry Value Name
*Required*

The name of the registry value to delete

## Details

- **Category:** Registry
- **Brick ID:** `Registry-Delete-Variable`

## Raw JSON definition

**JSON**

```json
{
  "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": [
    {
      "allowManualInput": null,
      "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"
        }
      ]
    },
    {
      "allowManualInput": null,
      "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
    },
    {
      "allowManualInput": 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"
}
```
