---
title: "Delete role"
method: DELETE
path: "/v1/roles/{id}"
tags: ["roles"]
---

# Delete role

`DELETE /v1/roles/{id}`

## Request

- Base URL: `https://api.brixsignage.com`
- URL: `https://api.brixsignage.com/v1/roles/{id}`
- Auth: HTTP bearer

Soft-deletes a custom role. The role can later be restored. Refuses the request while anyone is still assigned to the role.

## Path parameters

- `id` string, required

## Response `200`

Success.

- object
  - `data` object, required
    - `id` string, required
    - `deleted` true, required

## Other responses

- `401`: Missing, expired or revoked bearer token.
- `403`: The token lacks the permission this operation needs (see `x-brix-permission`).
- `404`: No such role in this workspace.
- `409`: `protected` (a built-in role), `last_owner_role`, or `in_use` (people still hold the role).
- `5XX`: Server error. The body carries a `requestId` to quote to support.

---

[API](https://skmtc.dev/brixsignage/apis/brix-api.md) · [All operations](https://skmtc.dev/brixsignage/apis/brix-api/llms.txt) · [OpenAPI document](https://skmtc.dev/brixsignage/apis/brix-api/revisions/02fd3665dc7d?raw)
