Skip to main content
DELETE
/
v1
/
roles
/
{roleId}
Delete a custom role
curl --request DELETE \
  --url https://api.coderabbit.ai/v1/roles/{roleId} \
  --header 'x-coderabbitai-api-key: <api-key>'

Delete Custom Role

Deletes an Enterprise custom role when it is not assigned to any organization members. System roles cannot be deleted.
Requires Admin role. See Role-based access for details.

Authorizations

x-coderabbitai-api-key
string
header
required

API key for authentication. You can create an API key from the CodeRabbit dashboard.

Path Parameters

roleId
string
required

Response

204

Custom role deleted