Share via


Core.EnumerateDeletedItemsAsync Method

Definition

Lists the deleted streams or directories in the trash matching the hint. Caution: Undeleting files is a best effort operation. There are no guarantees that a file can be restored once it is deleted. The use of this API is enabled via whitelisting. If your ADL account is not whitelisted, then using this api will throw Not immplemented exception. For further information and assistance please contact Microsoft support.

public static System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.TrashStatus> EnumerateDeletedItemsAsync (string hint, string listAfter, int numResults, 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 EnumerateDeletedItemsAsync : string * string * int * Microsoft.Azure.DataLake.Store.AdlsClient * Microsoft.Azure.DataLake.Store.RequestOptions * Microsoft.Azure.DataLake.Store.OperationResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.TrashStatus>
Public Shared Function EnumerateDeletedItemsAsync (hint As String, listAfter As String, numResults As Integer, client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task(Of TrashStatus)

Parameters

hint
String

String to match

listAfter
String

Filename after which list of files should be obtained from server

numResults
Int32

Search is executed until we find numResults or search completes. Maximum allowed value for this param is 4000. The number of returned entries could be more or less than numResults.

client
AdlsClient

ADLS Client

req
RequestOptions

Options to change behavior of the Http request

resp
OperationResponse

Stores the response/ouput of the Http request

cancelToken
CancellationToken

CancellationToken to cancel the request

Returns

List of deleted entries

Applies to