---
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

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
