/// <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> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteGroupAsync(this IGroupsOperations operations, System.Guid groupId, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteGroupWithHttpMessagesAsync(groupId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <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> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteGroupAsync(this IGroupsOperations operations, string groupId, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteGroupWithHttpMessagesAsync(groupId, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose(); }