---
title: "Delete a Role"
method: DELETE
path: "/v2/roles/{role_id}"
tags: ["roles"]
---

# Delete a Role

`DELETE /v2/roles/{role_id}`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/roles/{role_id}`
- Auth: HTTP bearer

Deletes a custom role nobody holds, counting deactivated members. System
roles cannot be deleted, and a role with members must have them reassigned
first.

## Path parameters

- `role_id` string, required

## Response `204`

Successful Response

## Other responses

- `404`: Not Found
- `409`: Conflict
- `422`: Validation Error

---

[API](https://skmtc.dev/stuut/apis/stuut-api.md) - [All operations](https://skmtc.dev/stuut/apis/stuut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stuut/apis/stuut-api/revisions/ff0ad16a55ff?raw)
