AdlsClient.Delete(String, CancellationToken) Method

Definition

Synchronous api to delete a file or directory. For directory it will only delete if it is empty.

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

Parameters

path
System.String

Path of file or directory

cancelToken
System.Threading.CancellationToken

CancellationToken to cancel the request

Returns

System.Boolean

True if the path is deleted successfully else false

Applies to