---
title: "Delete a custom role"
method: DELETE
path: "/v1/roles/{roleId}"
tags: ["Roles"]
---

# Delete a custom role

`DELETE /v1/roles/{roleId}`

Delete a custom role in Comp AI. Create custom roles and resolve permission sets for organization-level access control.

## Path parameters

- `roleId` string, required

## Response `200`

Role deleted successfully

- object
  - `success` boolean
  - `message` string

## Other responses

- `400` — Cannot delete - members assigned to role
- `401` — Unauthorized
- `404` — Role not found

---

[API](https://skmtc.net/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.net/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
