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

# Delete a role

`DELETE /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

## Changes

- **2026-07-04** `44c969026994` — 1 info
  - endpoint added
- **2025-06-02** `0c070796939d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/marmotdata/apis/marmot-api/changes/roles/:id/delete.md)

---

[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/32cf70022131/schema)
