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

# Delete

`DELETE /admin/roles/{id}`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/admin/roles/{id}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

Deletes a CUSTOM role only — built-in slugs (admin, tenant_admin, developer, user) return 409 conflict, as does a role still assigned to any account (reassign those accounts first). System-admin (platform-only) gated.

## Path parameters

- `id` string, required

## Response `200`

OK

- InternalDeliveryHttpHandlerOKResponse
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error

---

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