Skip to main content

Delete a custom role

DELETE <your-unleash-url>/api/admin/roles/:roleId

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Delete a custom role by id. You cannot delete built-in roles or roles that are in use.

Request

Path Parameters

  • roleId string required
Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
roleId — path required
curl / cURL
curl -L -X DELETE '<your-unleash-url>/api/admin/roles/:roleId' \
-H 'Authorization: <API_KEY_VALUE>'