Language

SearchIndexerClient.DeleteIndexer Method

Definition

Overloads

Name Description
DeleteIndexer(String, CancellationToken)

Deletes an indexer.

DeleteIndexer(SearchIndexer, Boolean, CancellationToken)

Deletes an indexer.

DeleteIndexer(String, MatchConditions, RequestContext)

[Protocol Method] Deletes an indexer.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteIndexer(String, MatchConditions, CancellationToken)

Deletes an indexer.

DeleteIndexer(String, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

Deletes an indexer.

public virtual Azure.Response DeleteIndexer(string indexerName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteIndexer : string * System.Threading.CancellationToken -> Azure.Response
override this.DeleteIndexer : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteIndexer (indexerName As String, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

indexerName
String

The name of the SearchIndexer to delete.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be canceled.

Returns

The Response from the server.

Exceptions

Thrown when indexerName is null.

Thrown when a failure is returned by the Search service.

Applies to

DeleteIndexer(SearchIndexer, Boolean, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

Deletes an indexer.

public virtual Azure.Response DeleteIndexer(Azure.Search.Documents.Indexes.Models.SearchIndexer indexer, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteIndexer : Azure.Search.Documents.Indexes.Models.SearchIndexer * bool * System.Threading.CancellationToken -> Azure.Response
override this.DeleteIndexer : Azure.Search.Documents.Indexes.Models.SearchIndexer * bool * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteIndexer (indexer As SearchIndexer, Optional onlyIfUnchanged As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

indexer
SearchIndexer

The SearchIndexer to delete.

onlyIfUnchanged
Boolean

True to throw a RequestFailedException if the ETag does not match the current service version; otherwise, the current service version will be overwritten.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be canceled.

Returns

The Response from the server.

Exceptions

Thrown when indexer is null.

Thrown when a failure is returned by the Search service.

Applies to

DeleteIndexer(String, MatchConditions, RequestContext)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

[Protocol Method] Deletes an indexer.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response DeleteIndexer(string indexerName, Azure.MatchConditions matchConditions, Azure.RequestContext context);
abstract member DeleteIndexer : string * Azure.MatchConditions * Azure.RequestContext -> Azure.Response
override this.DeleteIndexer : string * Azure.MatchConditions * Azure.RequestContext -> Azure.Response
Public Overridable Function DeleteIndexer (indexerName As String, matchConditions As MatchConditions, context As RequestContext) As Response

Parameters

indexerName
String

The name of the indexer.

matchConditions
MatchConditions

The content to send as the request conditions of the request.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

indexerName is null.

indexerName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

DeleteIndexer(String, MatchConditions, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

Deletes an indexer.

public virtual Azure.Response DeleteIndexer(string indexerName, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteIndexer : string * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.Response
override this.DeleteIndexer : string * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteIndexer (indexerName As String, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

indexerName
String

The name of the indexer.

matchConditions
MatchConditions

The content to send as the request conditions of the request.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

indexerName is null.

indexerName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to