---
title: "Delete Policy Guard Rule"
method: DELETE
path: "/v2/policy_guards/scopes/{policy_guard_scope_id}/rules"
tags: ["Policy Guards (EAP)"]
---

# Delete Policy Guard Rule

`DELETE /v2/policy_guards/scopes/{policy_guard_scope_id}/rules`

Remove a policy guard rule.

## Path parameters

- `policy_guard_scope_id` string, required — Either the unique id of the policy_guard_scope, or the URL-friendly key of the policy_guard_scope (i.e: the "slug").

## Request body

- PolicyGuardRuleItem
  - `resource_key` string, required — The key of the resource.
  - `role_key` string — The key of the role.
  - `action_key` string, required — The key of the action.
  - `resource_set` ConditionSet
    - `key` string, required — The key of the condition set.
    - `attribute` string, required — The attribute of the condition set.
    - `operator` string, required — The operator of the condition set.
    - `value` string, required — The value of the condition set.
  - `user_set` ConditionSet
    - `key` string, required — The key of the condition set.
    - `attribute` string, required — The attribute of the condition set.
    - `operator` string, required — The operator of the condition set.
    - `value` string, required — The value of the condition set.

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/permit/apis/permit-io-api.md) · [All operations](https://skmtc.dev/permit/apis/permit-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/permit/permit-io-api/revisions/0235743bf8a2/schema)
