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

# Delete role

`DELETE /rbac/roles/{id}`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/rbac/roles/{id}`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token` scopes: `rbac|create`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/rbac/roles/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently deletes a custom role. Users assigned the role get the `none` role, and the role is removed from all groups. Requires an Enterprise plan or the RBAC add-on.

## Path parameters

- `id` string, required

## Response `204`

The role was deleted.

## Other responses

- `403`: Forbidden
- `404`: Not found

## Changes

- **2026-10-16** (v2) `fbc1b8430feb`: 2 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/rbac/roles/:id/delete.md)

---

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