Delete Project Role
(v2)DELETE
Permanently deletes a custom project role. A role still assigned to at least one member cannot be deleted — move those members onto another role first — so deleting a role never silently strips anyone of their access. The policies attached to it are not deleted and stay available to other roles in the project. A global, system-defined role responds 404. This cannot be undone.
curl -X DELETE "https://api.confident-ai.com/v2/projects/{projectId}/roles/{roleId}" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"id": "<ROLE-ID>"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
projectIdstringRequiredThe id of the project the role belongs to.
roleIdstringRequiredThe id of the project role. It must be a role the project owns; a global, system-defined role is not addressable here.
Response
Delete Project Role succeeded.
successbooleanIndicates if the request was successful.
dataobjectConfirmation that the role no longer exists.
Show 1 propertyHide 1 property
idstringThe id of the role that was deleted.
deprecatedbooleanIndicates if this endpoint is deprecated.