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.StringThe path to the file or folder to delete.
accountName
Type: System.StringThe name of the account to use
recursive
Type: System.BooleanThe optional switch indicating if the delete should be recursive
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
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