/// <summary> /// Delete the role. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='roleId'> /// The role identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RoleDto> DeleteRoleAsync(this IRole operations, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteRoleWithHttpMessagesAsync(roleId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }