ICloudBlob.DeleteAsync Method

Definition

Overloads

DeleteAsync()

Initiates an asynchronous operation to delete the blob.

DeleteAsync(CancellationToken)

Initiates an asynchronous operation to delete the blob.

DeleteAsync(DeleteSnapshotsOption, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to delete the blob.

DeleteAsync(DeleteSnapshotsOption, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to delete the blob.

DeleteAsync()

Initiates an asynchronous operation to delete the blob.

public System.Threading.Tasks.Task DeleteAsync ();
abstract member DeleteAsync : unit -> System.Threading.Tasks.Task
Public Function DeleteAsync () As Task

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.Task object that represents the asynchronous operation.

Applies to

DeleteAsync(CancellationToken)

Initiates an asynchronous operation to delete the blob.

public System.Threading.Tasks.Task DeleteAsync (System.Threading.CancellationToken cancellationToken);
abstract member DeleteAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken to observe while waiting for a task to complete.

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.Task object that represents the asynchronous operation.

Applies to

DeleteAsync(DeleteSnapshotsOption, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to delete the blob.

public System.Threading.Tasks.Task DeleteAsync (Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption deleteSnapshotsOption, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
abstract member DeleteAsync : Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
Public Function DeleteAsync (deleteSnapshotsOption As DeleteSnapshotsOption, accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext) As Task

Parameters

deleteSnapshotsOption
DeleteSnapshotsOption

A DeleteSnapshotsOption object indicating whether to only delete the blob, to delete the blob and all snapshots, or to only delete the snapshots.

accessCondition
AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed.

options
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.Task object that represents the asynchronous operation.

Applies to

DeleteAsync(DeleteSnapshotsOption, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to delete the blob.

public System.Threading.Tasks.Task DeleteAsync (Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption deleteSnapshotsOption, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member DeleteAsync : Microsoft.Azure.Storage.Blob.DeleteSnapshotsOption * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteAsync (deleteSnapshotsOption As DeleteSnapshotsOption, accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task

Parameters

deleteSnapshotsOption
DeleteSnapshotsOption

A DeleteSnapshotsOption object indicating whether to only delete the blob, to delete the blob and all snapshots, or to only delete the snapshots.

accessCondition
AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed.

options
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken to observe while waiting for a task to complete.

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.Task object that represents the asynchronous operation.

Applies to