/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
uidstringRequiredThe firewall policy's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The policy was deleted.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | No firewall policy with this uid exists in the workspace. |
Errors use the standard error format.