Get your free beta license ↗
API operation · security group
DELETE

/security/firewall/rules/{id}

First published 3 Oct 20260.1.0Unchanged since publication

Remove a firewall rule

Who may call it
AdministratorResellerCustomer
Token scope, any of
securityall
Answers200 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

Run as root on the server

Parameters

idpath ·integer, 1 or moreRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
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

3 errors, each a status and a sentence
400Invalid id
401Authentication required
404Rule <id> not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/delete-security-firewall-rules-id/