IFileSystemOperations.DeleteAsync Method (String, String, Boolean, CancellationToken)

 

Deletes the requested file or folder, optionally recursively.

Namespace:   Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly:  Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)

Syntax

Task<FileOperationResultResponse> DeleteAsync(
    string filePath,
    string accountName,
    bool recursive,
    CancellationToken cancellationToken
)
Task<FileOperationResultResponse^>^ DeleteAsync(
    String^ filePath,
    String^ accountName,
    bool recursive,
    CancellationToken cancellationToken
)
abstract DeleteAsync : 
        filePath:string *
        accountName:string *
        recursive:bool *
        cancellationToken:CancellationToken -> Task<FileOperationResultResponse>
Function DeleteAsync (
    filePath As String,
    accountName As String,
    recursive As Boolean,
    cancellationToken As CancellationToken
) As Task(Of FileOperationResultResponse)

Parameters

  • filePath
    Type: System.String

    The path to the file or folder to delete.

  • recursive
    Type: System.Boolean

    The optional switch indicating if the delete should be recursive

Return Value

Type: System.Threading.Tasks.Task<FileOperationResultResponse>

The result of the request or operation.

See Also

IFileSystemOperations Interface
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace

Return to top