Language

CosmosDBExtensions.PurgeAsync Method

Definition

Permanently deletes (purges) a soft-deleted Azure Cosmos DB database account. <item> Mocking. To mock this method, please mock PurgeAsync(WaitUntil, AzureLocation, String, Nullable<SoftDeleteActionKind>, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> PurgeAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, string accountName, Azure.ResourceManager.CosmosDB.Models.SoftDeleteActionKind? softDeleteActionKind = default, System.Threading.CancellationToken cancellationToken = default);
static member PurgeAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.WaitUntil * Azure.Core.AzureLocation * string * Nullable<Azure.ResourceManager.CosmosDB.Models.SoftDeleteActionKind> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
<Extension()>
Public Function PurgeAsync (resourceGroupResource As ResourceGroupResource, waitUntil As WaitUntil, location As AzureLocation, accountName As String, Optional softDeleteActionKind As Nullable(Of SoftDeleteActionKind) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

location
AzureLocation

The name of the Azure region.

accountName
String

Cosmos DB database account name.

softDeleteActionKind
Nullable<SoftDeleteActionKind>

The kind of soft delete action to perform.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to