Skip to content

Delete a firewall policy

DELETE/v1/firewall-policies/{uid}

Deletes the policy, even if it is attached to resources. Its rules and all of its attachments are deleted with it in one step, so the policy stops applying straight away and no longer appears in any resource's policy list. A firewall.apply operation is queued for every resource it was attached to, so their firewalls are rebuilt from their remaining policies. A resource left with no policy is no longer filtered.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The firewall policy's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The policy was deleted.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404No firewall policy with this uid exists in the workspace.

Errors use the standard error format.