---
title: "Delete Role"
method: DELETE
path: "/api/admin-role/{role_id}"
tags: ["Admin Roles"]
---

# Delete Role

`DELETE /api/admin-role/{role_id}`

Delete a role. Owner only. Built-in roles and in-use roles cannot be deleted.

## Path parameters

- `role_id` integer, required

## Response `204`

Successful Response

## Other responses

- `401` — Unauthorized Error
- `403` — Forbidden Error
- `404` — NotFound Error
- `409` — Conflict Error
- `422` — Validation Error

---

[API](https://skmtc.dev/ha-man2/apis/pasarguardapi.md) · [All operations](https://skmtc.dev/ha-man2/apis/pasarguardapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ha-man2/pasarguardapi/revisions/84d9ff88fcda/schema)
