Share via


DataLakeDirectoryClient.DeleteSubDirectoryAsync Method

Definition

The DeleteSubDirectoryAsync(String, String, DataLakeRequestConditions, CancellationToken) deletes a sub directory in this directory.

For more information, see Delete Path.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteSubDirectoryAsync (string path, string continuation = default, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteSubDirectoryAsync : string * string * Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteSubDirectoryAsync : string * string * Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteSubDirectoryAsync (path As String, Optional continuation As String = Nothing, Optional conditions As DataLakeRequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

path
String

The path to the directory to delete.

continuation
String

Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory.

conditions
DataLakeRequestConditions

Optional DataLakeRequestConditions to add conditions on deleting this path.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response on successfully deleting.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to