/// <summary> /// Deletes the specified workspace. /// </summary> /// <remarks> /// <br/>**Required scope**: Workspace.ReadWrite.All<br/>To set the /// permissions scope, see [Register an /// app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// The workspace id to delete /// </param> public static void DeleteGroup(this IGroupsOperations operations, System.Guid groupId) { operations.DeleteGroupAsync(groupId).GetAwaiter().GetResult(); }
/// <summary> /// Delete entity from groups /// </summary> /// <remarks> /// Represents an Azure Active Directory object. The directoryObject type is /// the base type for many other directory entity types. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// key: id of group /// </param> /// <param name='ifMatch'> /// ETag /// </param> public static void DeleteGroup(this IGroupsOperations operations, string groupId, string ifMatch = default(string)) { operations.DeleteGroupAsync(groupId, ifMatch).GetAwaiter().GetResult(); }