Share via


IHadoopStorageSyncClient.Delete Method (String, Nullable<Boolean>)

 

Note

This version of the HDInsight .NET SDK is deprecated and will be removed by January 1, 2017. You are encouraged to use the newer ARM-based version of HDInsight .NET SDK going forward. For instructions on how to use the new HDInsight .NET SDK to create a cluster, see Create HDInsight Linux clusters using .NET SDK. For instructions on how to submit jobs using the new .NET SDK and other approaches, see Submit jobs to an HDInsight cluster. The HDInsight SDK reference for the newer version is available at HDInsight .NET SDK Reference.

Deletes a file or directory at the given path.

Namespace:   Microsoft.Hadoop.Client.HadoopStorageClientLayer
Assembly:  Microsoft.Hadoop.Client (in Microsoft.Hadoop.Client.dll)

Syntax

bool Delete(
    string path,
    Nullable<bool> recursive
)
bool Delete(
    String^ path,
    Nullable<bool> recursive
)
abstract Delete : 
        path:string *
        recursive:Nullable<bool> -> bool
Function Delete (
    path As String,
    recursive As Nullable(Of Boolean)
) As Boolean

Parameters

  • recursive
    Type: System.Nullable<Boolean>

    If path is a directory and set to true, the directory is deleted else throws an exception. In case of a file the recursive can be set to either true or false.

Return Value

Type: System.Boolean

True if delete is successful, otherwise false.

See Also

Delete Overload
IHadoopStorageSyncClient Interface
Microsoft.Hadoop.Client.HadoopStorageClientLayer Namespace

Return to top