Share via


AdlsClient.DeleteRecursive(String, CancellationToken) Method

Definition

Synchronous api to delete a file or directory recursively. If it is a non-empty directory then it deletes the sub-directories or files.

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

Parameters

path
String

Path of file or directory

cancelToken
CancellationToken

CancellationToken to cancel the request

Returns

True if the path is deleted successfully else false

Applies to