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

# Delete a role

`DELETE /api/roles/{id}`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/roles/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/roles/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a role and its associated permissions. Fails if users are currently assigned to the role

## Path parameters

- `id` integer, required

## Response `204`

Empty response when role has been deleted successfully.

- unknown

---

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