This method throws an OperationNotSupportedSharePointMode exception when invoked in SharePont mode.

Deleting a role removes it from all policies with which the role is associated. If the role that is deleted is the only role that is associated with a particular policy, the policy is also deleted and any item associated with the policy inherits new policies from its parent.