Partager via


Core.DeleteAsync Méthode

Définition

Supprime un fichier ou un répertoire

public static System.Threading.Tasks.Task<bool> DeleteAsync (string path, bool recursive, Microsoft.Azure.DataLake.Store.AdlsClient client, Microsoft.Azure.DataLake.Store.RequestOptions req, Microsoft.Azure.DataLake.Store.OperationResponse resp, System.Threading.CancellationToken cancelToken = default);
static member DeleteAsync : string * bool * Microsoft.Azure.DataLake.Store.AdlsClient * Microsoft.Azure.DataLake.Store.RequestOptions * Microsoft.Azure.DataLake.Store.OperationResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Shared Function DeleteAsync (path As String, recursive As Boolean, client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task(Of Boolean)

Paramètres

path
String

Chemin du fichier ou du répertoire

recursive
Boolean
client
AdlsClient

ADLS Client

req
RequestOptions

Options permettant de modifier le comportement de la requête Http

resp
OperationResponse

Stocke la réponse/l’ouput de la requête Http

cancelToken
CancellationToken

CancelToken pour annuler la demande

Retours

True si la suppression réussit

S’applique à