# DELETE /security/firewall/rules/{id}

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the security group.

Remove a firewall rule

- Who may call it: administrator
- Token scope, any of: security, all
- Answers: 200 OK

Removing an allow rule requires that no other firewall change be pending. By default, UrbeStack restores the previous rules after five minutes unless you confirm the removal with POST /security/firewall/confirm, the urbestack-firewall-confirm command, or the Confirm button in the web interface.

Use the urbestack-firewall-rule-list command to find the rule ID.

## As a command

- [urbestack-firewall-rule-del](https://urbestack.com/docs/commands/urbestack-firewall-rule-del.md): Removes the firewall rule selected by --id.

## Parameters

- `id` (path, integer, 1 or more, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X DELETE "$API/security/firewall/rules/1" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "id": 1,
  "removed": 1,
  "revert": {
    "armed": true,
    "deadline": "text",
    "what": "text"
  }
}
```

## Errors

- 400: Invalid id
- 401: Authentication required
- 404: Rule <id> not found
