StorageTargetsExtensions.DeleteAsync Method

Definition

Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.

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

Parameters

operations
IStorageTargets

The operations group for this extension method.

resourceGroupName
String

Target resource group.

cacheName
String

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName
String

Name of Storage Target.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to