---
title: "Unassign Set Permissions"
method: DELETE
path: "/v2/facts/{proj_id}/{env_id}/set_rules"
tags: ["Condition Set Rules"]
---

# Unassign Set Permissions

`DELETE /v2/facts/{proj_id}/{env_id}/set_rules`

Revokes permissions to a user set *on* a resource set.

If the permission is not granted, it is skipped.

## Path parameters

- `proj_id` string, required — Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `env_id` string, required — Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

## Request body

- ConditionSetRuleRemove
  - `user_set` string, required — The userset that will be unassigned these permission, i.e: all the users matching this rule will lose the specified permission
  - `permission` string, required — The permission that will be removed from the userset *on* the resourceset. The permission can be either a resource action id, or `{resource_key}:{action_key}`, i.e: the "permission name".
  - `resource_set` string, required — The resourceset that represents the resources that are no longer granted for access, i.e: all the resources matching this rule can no longer be accessed by the userset, and will be revoked the specified *permission*
  - `is_role` boolean — if True, will set the condition set rule to the role's autogen user-set.
  - `is_resource` boolean — if True, will set the condition set rule to the resource's autogen resource-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)
