# Unregister DLL

> Unregisters a DLL file or all DLL files within a specified directory using the regsvr32 command.

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

Unregisters a DLL file or all DLL files within a specified directory using the regsvr32 command. This PowerBrick can be used to unregister COM components during a package uninstallation.

## Parameters

#### DLL Name Or Path
*Required*

The name of the DLL to unregister (for example: mylibrary.dll) or a path containing multiple DLLs to unregister (for example: $PackageRoot). If a path is provided, all DLL files in that path and its subdirectories will be unregistered.

#### Ignore Errors
*Optional* — Default: `True`

If enabled, errors during DLL unregistration will be ignored. If disabled, the PowerBrick will throw an error if the unregistration fails.

## Details

- **Category:** System
- **Brick ID:** `DLL-Unregister`

## Raw JSON definition

**JSON**

```json
{
  "category": "system",
  "description": "Unregisters a DLL file or all DLL files within a specified directory using the regsvr32 command. This PowerBrick can be used to unregister COM components during a package uninstallation.",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "DLL-Unregister",
  "name": "Unregister DLL",
  "parameters": [
    {
      "allowManualInput": false,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The name of the DLL to unregister (for example: mylibrary.dll) or a path containing multiple DLLs to unregister (for example: $PackageRoot). If a path is provided, all DLL files in that path and its subdirectories will be unregistered.",
      "id": "DLL",
      "name": "DLL Name Or Path",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": false,
      "defaultValue": "True",
      "defaultValueObject": null,
      "description": "If enabled, errors during DLL unregistration will be ignored. If disabled, the PowerBrick will throw an error if the unregistration fails.",
      "id": "IgnoreErrors",
      "name": "Ignore Errors",
      "regExValidation": "",
      "required": false,
      "type": "Boolean",
      "value": null,
      "values": [],
      "valuesObject": null
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "ZnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.9.1.1"
}
```
