IIndexOperations.DeleteAsync Method (String, CancellationToken)

 

Applies To: Microsoft Azure

Deletes an Azure Search index and all the documents it contains. (see https://msdn.microsoft.com/library/azure/dn798926.aspx for more information)

Namespace:   Microsoft.Azure.Search
Assembly:  Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)

Syntax

Task<AzureOperationResponse> DeleteAsync(
    string indexName,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ DeleteAsync(
    String^ indexName,
    CancellationToken cancellationToken
)
abstract DeleteAsync : 
        indexName:string *
        cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function DeleteAsync (
    indexName As String,
    cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)

Parameters

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

See Also

IIndexOperations Interface
Microsoft.Azure.Search Namespace

Return to top