IndexOperationsExtensions.DeleteAsync Method (IIndexOperations, String)
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
public static Task<AzureOperationResponse> DeleteAsync(
this IIndexOperations operations,
string indexName
)
public:
[ExtensionAttribute]
static Task<AzureOperationResponse^>^ DeleteAsync(
IIndexOperations^ operations,
String^ indexName
)
static member DeleteAsync :
operations:IIndexOperations *
indexName:string -> Task<AzureOperationResponse>
<ExtensionAttribute>
Public Shared Function DeleteAsync (
operations As IIndexOperations,
indexName As String
) As Task(Of AzureOperationResponse)
Parameters
operations
Type: Microsoft.Azure.Search.IIndexOperationsReference to the Microsoft.Azure.Search.IIndexOperations.
indexName
Type: System.StringRequired. The name of the index to delete.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse>
A standard service response including an HTTP status code and request ID.
See Also
IndexOperationsExtensions Class
Microsoft.Azure.Search Namespace
Return to top