---
title: "Revoke role from user"
method: DELETE
path: "/zones/{zoneId}/users/{userId}/roles/{roleId}"
tags: ["Zone Roles"]
---

# Revoke role from user

`DELETE /zones/{zoneId}/users/{userId}/roles/{roleId}`

Revokes a role from the user. Provide the same (scope_type, scope_id) pair the grant was created with, or omit both to revoke the unscoped grant.

## Path parameters

- `zoneId` string, required
- `userId` string, required
- `roleId` string, required

## Query parameters

- `scope_type` string
- `scope_id` string

## Response `204`

Default Response

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/keycardai/apis/untitled-api.md) · [All operations](https://skmtc.net/keycardai/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keycardai/untitled-api/revisions/2f5033ed4491/schema)
