AdlsClient.DeleteRecursiveAsync(String, CancellationToken) Method

Definition

Asynchronous api to delete a file or directory recursively

public virtual System.Threading.Tasks.Task<bool> DeleteRecursiveAsync (string path, System.Threading.CancellationToken cancelToken = default);
abstract member DeleteRecursiveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.DeleteRecursiveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function DeleteRecursiveAsync (path As String, Optional cancelToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

path
System.String

Path of file or directory

cancelToken
System.Threading.CancellationToken

CancellationToken to cancel the request

Returns

System.Threading.Tasks.Task<System.Boolean>

True if the path is deleted successfully else false

Applies to