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
The endpoint's
uuid from /endpoints.policy_uuid string (uuid) Req
The policy's
uuid from the policy list. Resolved under this endpoint only.Deprecated: the legacy integer id is still accepted in the path until the sunset, answered with Deprecation and Sunset headers. Use the uuid.
Response (204 No Content)
Empty body on success.
Errors
400 Bad Request
An integer policy id after the sunset (
integer_id_unsupported).401 Unauthorized
Missing auth.
404 Not Found
Endpoint doesn't exist (
Endpoint not found), or the policy isn't one of this endpoint's (Policy not found).Request
curl -X DELETE "https://api.ngris.com/v1/endpoints/019bb1e4-e785-77d2-9966-c3cff31d0a0e/policies/019b74e7-6fe8-7784-9d8a-9b7f9cb99a89" \
-H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
client.traffic_policies.delete("019bb1e4-e785-77d2-9966-c3cff31d0a0e", "019b74e7-6fe8-7784-9d8a-9b7f9cb99a89")
Response — 204 No Content
Was this helpful?