You can use the non Public API method
ch.ivyteam.ivy.security.IRole interface to delete a role. Be careful that you only delete roles:
- that you have created by your own
- that are not referenced by open tasks as activators of the task. Otherwise these task will be switched to status UNASSIGNED for ivy <= 8. With ivy 9.1 they will lose the activator and therefore nobody is responsible for them.
As notes in an other thread we will introduce a Public API in furture to manage dynamic roles (e.g. roles that are not defined in the Designer but by API).
Reto Weiss, AXON IVY Support