# Remove Firewall Rule

> Removes one or more Windows Firewall rules by display name or internal rule name.

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

Removes one or more Windows Firewall rules by display name or internal rule name. Use DisplayName to target rules as shown in Windows Firewall with Advanced Security, or use Name to target a rule by its internal identifier. If the specified rule does not exist, the brick completes without error.

## Parameters

#### Display Name
*Optional*

The display name of the firewall rule(s) to remove, as shown in Windows Firewall with Advanced Security. Supports wildcards, e.g. 'My App *'. Either Display Name or Name must be provided.

#### Name
*Optional*

The internal name (rule ID) of the firewall rule to remove. Either Display Name or Name must be provided.

## Details

- **Category:** System
- **Brick ID:** `FirewallRule-Remove`

## Raw JSON definition

**JSON**

```json
{
  "category": "system",
  "description": "Removes one or more Windows Firewall rules by display name or internal rule name. Use DisplayName to target rules as shown in Windows Firewall with Advanced Security, or use Name to target a rule by its internal identifier. If the specified rule does not exist, the brick completes without error.",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "FirewallRule-Remove",
  "name": "Remove Firewall Rule",
  "parameters": [
    {
      "allowManualInput": false,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The display name of the firewall rule(s) to remove, as shown in Windows Firewall with Advanced Security. Supports wildcards, e.g. 'My App *'. Either Display Name or Name must be provided.",
      "id": "DisplayName",
      "name": "Display Name",
      "regExValidation": "",
      "required": false,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": false,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The internal name (rule ID) of the firewall rule to remove. Either Display Name or Name must be provided.",
      "id": "Name",
      "name": "Name",
      "regExValidation": "",
      "required": false,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "ZnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.9.1.1"
}
```
