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>'

Documentation Index

Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt

Use this file to discover all available pages before exploring further.

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