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

# Delete a role

`DELETE /api/v1/roles/{id}`

Soft-delete a role. Fails if the role is a system role or has active user assignments.

## Path parameters

- `id` string, required

## Response `204`

No Content

## Other responses

- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.dev/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.dev/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/marmotdata/marmot-api/revisions/0bd802afff21/schema)
