---
title: "Deletes the role with the specified id."
method: POST
path: "/roles/{roleId}/delete"
tags: ["roles"]
---

# Deletes the role with the specified id.

`POST /roles/{roleId}/delete`

<Check title="Required Permissions" icon="key">The user must be an admin or have `workspace-manage-config:write` permissions.</Check>

## Path parameters

- `roleId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- DeleteRoleForm
  - `newRoleId` string, uuid, nullable — The id of the role to which all users of the old role will be moved. Required if there are users assigned to the role being deleted.

## Response `204`

No Content

- object

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-09-12** `8e46cf415581` — 1 info
  - api operation id `PostRoleDeleteByRoleId` removed and replaced with `roles_PostRoleDeleteByRoleId`

[Change history](https://skmtc.dev/awork-io/apis/api-v1-reference/changes/roles/:roleId/delete/post.md)

---

[API](https://skmtc.dev/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.dev/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/awork-io/apis/api-v1-reference/revisions/d116d3e9e7d6?raw)
