Share via


AffinityGroupOperationsExtensions.DeleteAsync Method (IAffinityGroupOperations, String)

 

Asynchronously deletes an affinity group from the specified subscription.

Namespace:   Microsoft.WindowsAzure.Management
Assembly:  Microsoft.WindowsAzure.Management (in Microsoft.WindowsAzure.Management.dll)

Syntax

public static Task<AzureOperationResponse> DeleteAsync(
    this IAffinityGroupOperations operations,
    string affinityGroupName
)
public:
[ExtensionAttribute]
static Task<AzureOperationResponse^>^ DeleteAsync(
    IAffinityGroupOperations^ operations,
    String^ affinityGroupName
)
static member DeleteAsync : 
        operations:IAffinityGroupOperations *
        affinityGroupName:string -> Task<AzureOperationResponse>
<ExtensionAttribute>
Public Shared Function DeleteAsync (
    operations As IAffinityGroupOperations,
    affinityGroupName As String
) As Task(Of AzureOperationResponse)

Parameters

  • affinityGroupName
    Type: System.String

    The name of the affinity group to delete.

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

An OperationResponse object that includes an HTTP status code and request ID.

Remarks

Before you delete an affinity group, you must modify or delete any resources that currently use it. An affinity group cannot be deleted as long as it is associated with any resources.

For more information about deleting affinity groups, see the following resources:

See Also

AffinityGroupOperationsExtensions Class
Microsoft.WindowsAzure.Management Namespace

Return to top