ManagementGroupsOperationsExtensions.BeginDeleteAsync(IManagementGroupsOperations, String, String, CancellationToken) Method

Definition

Delete management group. If a management group contains child resources, the request will fail.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagementGroups.Models.OperationResults> BeginDeleteAsync (this Microsoft.Azure.Management.ManagementGroups.IManagementGroupsOperations operations, string groupId, string cacheControl = "no-cache", System.Threading.CancellationToken cancellationToken = default);
static member BeginDeleteAsync : Microsoft.Azure.Management.ManagementGroups.IManagementGroupsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagementGroups.Models.OperationResults>
<Extension()>
Public Function BeginDeleteAsync (operations As IManagementGroupsOperations, groupId As String, Optional cacheControl As String = "no-cache", Optional cancellationToken As CancellationToken = Nothing) As Task(Of OperationResults)

Parameters

operations
IManagementGroupsOperations

The operations group for this extension method.

groupId
System.String

Management Group ID.

cacheControl
System.String

Indicates that the request shouldn't utilize any caches.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<OperationResults>

Applies to