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

# Delete Role

`DELETE /rbac/roles/{role_id}`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/rbac/roles/{role_id}`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Delete a role.

Roles with active assignments must have all assignments removed first.

Requires: org:rbac:delete scope

## Path parameters

- `role_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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