Share via


QueueOperationsExtensions.DeleteAsync Method

Definition

Deletes the queue with the specified queue name, under the specified account if it exists.

public static System.Threading.Tasks.Task DeleteAsync (this Microsoft.Azure.Management.Storage.IQueueOperations operations, string resourceGroupName, string accountName, string queueName, System.Threading.CancellationToken cancellationToken = default);
static member DeleteAsync : Microsoft.Azure.Management.Storage.IQueueOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function DeleteAsync (operations As IQueueOperations, resourceGroupName As String, accountName As String, queueName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IQueueOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the user's subscription. The name is case insensitive.

accountName
String

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

queueName
String

A queue name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to