Mark the currently active role as no longer active.
Any settings (including General Settings, data object or folder tenancy, etc...) changed by activating the role will remain in place until the session ends.
Syntax
Example
Check to see if a role is active in the system, if it is, deactivate it.
if (api.Roles.IsActiveRole)
{
api.Roles.Deactivate();
}