---
title: "Remove a role from a user in an organization"
method: DELETE
path: "/api/organizations/{id}/users/{userId}/roles/{organizationRoleId}"
tags: ["Organizations"]
---

# Remove a role from a user in an organization

`DELETE /api/organizations/{id}/users/{userId}/roles/{organizationRoleId}`

Remove a role assignment from a user in the specified organization.

## Path parameters

- `id` string, required
- `userId` string, required
- `organizationRoleId` string, required

## Response `204`

The role was removed from the user successfully.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Cannot find the record to delete.
- `422` — The user is not a member of the organization.

---

[API](https://skmtc.dev/logto/apis/logto-api-references.md) · [All operations](https://skmtc.dev/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/logto/logto-api-references/revisions/0287c6a59eba/schema)
