Task DeleteRole(
RoleDto role,
UserSessionData deletedBy,
CancellationToken cancellationToken = default
)| ArgumentNullException | Thrown if role or deletedBy is . |
| UnauthorizedAccessException | Thrown if deletedBy does not have the requirements to execute this method. |
| ArgumentException | Thrown if deletedBy is not part of the company role belongs to, or if role is a build-in role. |
| InvalidOperationException | Thrown if role is still in use within the company. |