ResourceGroupsOperationsExtensions.BeginDeleteAsync(IResourceGroupsOperations, String, CancellationToken) ResourceGroupsOperationsExtensions.BeginDeleteAsync(IResourceGroupsOperations, String, CancellationToken) Method

Definition

Deletes a resource group.

public static System.Threading.Tasks.Task BeginDeleteAsync (this Microsoft.Azure.Management.ResourceManager.IResourceGroupsOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = null);
static member BeginDeleteAsync : Microsoft.Azure.Management.ResourceManager.IResourceGroupsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

operations
IResourceGroupsOperations IResourceGroupsOperations

The operations group for this extension method.

resourceGroupName
String String

The name of the resource group to delete. The name is case insensitive.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Remarks

When you delete a resource group, all of its resources are also deleted.

Deleting a resource group deletes all of its template deployments and

currently stored operations.

Applies to