---
title: "removeAssignment"
method: DELETE
path: "/v1/permissions/assignments/{userId}/{roleId}"
tags: ["Assignments"]
---

# removeAssignment

`DELETE /v1/permissions/assignments/{userId}/{roleId}`

Remove role assignment from user

## Path parameters

- `userId` string, required — Id of a user
- `roleId` string, required — Format: <organization_id>:<slug>

## Response `200`

ok

- Assignment — A role attached to an user
  - `user_id` string — Id of a user
  - `roles` RoleId[]

---

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