FileSystemOperationsExtensions.Delete Method (IFileSystemOperations, String, String, Boolean)

 

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

public static FileOperationResultResponse Delete(
    this IFileSystemOperations operations,
    string filePath,
    string accountName,
    bool recursive
)
public:
[ExtensionAttribute]
static FileOperationResultResponse^ Delete(
    IFileSystemOperations^ operations,
    String^ filePath,
    String^ accountName,
    bool recursive
)
static member Delete : 
        operations:IFileSystemOperations *
        filePath:string *
        accountName:string *
        recursive:bool -> FileOperationResultResponse
<ExtensionAttribute>
Public Shared Function Delete (
    operations As IFileSystemOperations,
    filePath As String,
    accountName As String,
    recursive As Boolean
) As FileOperationResultResponse

Parameters

  • filePath
    Type: System.String

    Required. The path to the file or folder to delete.

  • accountName
    Type: System.String

    Required. The name of the account to use

  • recursive
    Type: System.Boolean

    Required. The optional switch indicating if the delete should be recursive

Return Value

Type: Microsoft.Azure.Management.DataLake.StoreFileSystem.Models.FileOperationResultResponse

The result of the request or operation.

See Also

FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace

Return to top