Delete Firewall Condition
Permanently remove a condition from a policy. The remaining conditions still compose per their logical_operator chain to determine whether the policy fires — removing one condition changes which requests the policy matches.
Be careful when removing conditions from a block policy — you might suddenly start blocking legitimate traffic. Disable the policy first (PUT /v1/firewall/policies/{id} with enabled: false), verify the conditions you want, then re-enable.
Path parameters
id string (uuid) Req
Policy UUID.
condition_id string (uuid) Req
Condition UUID.
Response (204 No Content)
Empty body on success.
Errors
401 Unauthorized
Missing auth.
404 Not Found
Policy or condition doesn't exist.
Request
curl -X DELETE "https://api.ngris.com/v1/firewall/policies/abc-123/conditions/cond-1" \
-H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
client.firewall.delete_condition("abc-123", "cond-1")
Response — 204 No Content