Compartilhar via


GrpcDurableTaskClient.PurgeInstanceAsync(String, CancellationToken) Method

Definition

Purges orchestration instance metadata from the durable store.

public override System.Threading.Tasks.Task<Microsoft.DurableTask.Client.PurgeResult> PurgeInstanceAsync (string instanceId, System.Threading.CancellationToken cancellation = default);
override this.PurgeInstanceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.DurableTask.Client.PurgeResult>
Public Overrides Function PurgeInstanceAsync (instanceId As String, Optional cancellation As CancellationToken = Nothing) As Task(Of PurgeResult)

Parameters

instanceId
String

The unique ID of the orchestration instance to purge.

cancellation
CancellationToken

A CancellationToken that can be used to cancel the purge operation.

Returns

This method returns a PurgeResult object after the operation has completed with a PurgedInstanceCount value of 1 or 0, depending on whether the target instance was successfully purged.

Applies to