# Delete user role
This endpoint deletes a given role. It is not possible to delete the role of the calling user.
It is possible to delete a role assigned to a user. The user will then not be able to access the Trusted Twin platform without a role assigned.
In order for a user to perform the "delete_user_role" operation, the "delete_user_role" permission must be included in the list of allowed actions in the statement of the user's role.
|name||string||Name of the role. It must match the regular expression(opens new window) |
|rules||dictionary||Access rules that control access to a |
|effect|| string, value is ||Permission to perform an |
|actions||list||List of actions that we grant the user with the role the permission to perform. For a list of available actions, please consult the Available actions section.|
# Status codes
Requests to this endpoint result in generic status codes. For a comprehensive list of status codes, please consult the Status codes section.