Share via


IndexAction.Delete Method

Definition

Overloads

Delete(String, String)

Creates a new IndexAction for deleting a document.

Delete<T>(T)

Creates a new IndexAction for deleting a document.

Delete(String, String)

Source:
IndexAction.Customization.cs

Creates a new IndexAction for deleting a document.

public static Microsoft.Azure.Search.Models.IndexAction<Microsoft.Azure.Search.Models.Document> Delete (string keyName, string keyValue);
static member Delete : string * string -> Microsoft.Azure.Search.Models.IndexAction<Microsoft.Azure.Search.Models.Document>
Public Shared Function Delete (keyName As String, keyValue As String) As IndexAction(Of Document)

Parameters

keyName
String

The name of the key field of the index.

keyValue
String

The key of the document to delete.

Returns

A new IndexAction.

Applies to

Delete<T>(T)

Source:
IndexAction.Customization.cs

Creates a new IndexAction for deleting a document.

public static Microsoft.Azure.Search.Models.IndexAction<T> Delete<T> (T document);
static member Delete : 'T -> Microsoft.Azure.Search.Models.IndexAction<'T>
Public Shared Function Delete(Of T) (document As T) As IndexAction(Of T)

Type Parameters

T

The CLR type that maps to the index schema. Instances of this type can be stored as documents in the index.

Parameters

document
T

The document to delete; Fields other than the key are ignored.

Returns

A new IndexAction.

Applies to