AdlsClient.DeleteRecursiveAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET