Delete Traffic Policy
Permanently remove a policy and every rule attached to it (cascade-delete). Effect is immediate — the next request hitting the endpoint no longer evaluates this policy.
To preserve rule definitions but stop running them, use PUT with enabled: false instead.
Path parameters
uuid string (uuid) Req
Endpoint UUID.
policy_id int64 Req
Policy ID.
Response (204 No Content)
Empty body on success.
Errors
401 Unauthorized
Missing auth.
404 Not Found
Endpoint or policy doesn't exist.
Request
curl -X DELETE "https://api.ngris.com/v1/endpoints/<uuid>/policies/1" \
-H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
client.traffic_policies.delete("<endpoint_uuid>", "1")
Response — 204 No Content