InMemoryAgentFileStore.DeleteAsync(String, CancellationToken) Method

Definition

Deletes a file.

public override System.Threading.Tasks.Task<bool> DeleteAsync(string path, System.Threading.CancellationToken cancellationToken = default);
override this.DeleteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overrides Function DeleteAsync (path As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

path
String

The relative path of the file to delete.

cancellationToken
CancellationToken

A token to cancel the operation.

Returns

true if the file was deleted; false if it did not exist.

Applies to