> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Delete Rule

- Component: `appmixer.imperva.waf.DeleteRule`
- Kind: Action
- Version: 1.0.3
- Visibility: Public
- Connector: [appmixer.imperva 1.2.3](https://connectors.appmixer.com/connector/appmixer.imperva/1.2.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.imperva/1.2.3/component/appmixer.imperva.waf.DeleteRule>

Delete a rule by ID.

## Properties

_No properties defined._

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Site ID (`siteId`) | text | - |
| Rule ID (`ruleId`) | text | - |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Site ID (`site_id`) | string | - |
| Rule ID (`rule_id`) | string | - |

## Full metadata (component.json)

```json
{
  "version": "1.0.3",
  "name": "appmixer.imperva.waf.DeleteRule",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Delete a rule by ID.",
  "private": false,
  "auth": {
    "service": "appmixer:imperva"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string"
          },
          "ruleId": {
            "type": "string"
          }
        },
        "required": [
          "siteId",
          "ruleId"
        ]
      },
      "inspector": {
        "inputs": {
          "siteId": {
            "type": "text",
            "index": 0,
            "label": "Site ID",
            "source": {
              "url": "/component/appmixer/imperva/waf/ListSites?outPort=out",
              "data": {
                "messages": {
                  "in/isSource": true
                },
                "transform": "./ListSites#toSelectArray"
              }
            }
          },
          "ruleId": {
            "type": "text",
            "index": 1,
            "label": "Rule ID"
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Site ID",
          "value": "site_id",
          "schema": {
            "type": "string",
            "example": "12345678"
          }
        },
        {
          "label": "Rule ID",
          "value": "rule_id",
          "schema": {
            "type": "string",
            "example": "94521"
          }
        }
      ]
    }
  ],
  "properties": {},
  "label": "Delete Rule",
  "icon": "(data URI omitted)"
}
```
