SearchIndexClient.DeleteKnowledgeBase Method

Definition

Overloads

Name Description
DeleteKnowledgeBase(String, MatchConditions, CancellationToken)

Deletes a knowledge base.

DeleteKnowledgeBase(KnowledgeBase, Boolean, CancellationToken)

Deletes an existing knowledge base.

DeleteKnowledgeBase(String, CancellationToken)

Deletes an existing knowledge base.

DeleteKnowledgeBase(String, MatchConditions, RequestContext)

[Protocol Method] Deletes a knowledge base.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

DeleteKnowledgeBase(String, MatchConditions, CancellationToken)

Source:
SearchIndexClient.cs

Deletes a knowledge base.

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

Parameters

knowledgeBaseName
String

The name of the knowledge base.

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

knowledgeBaseName is null.

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

Service returned a non-success status code.

Applies to

DeleteKnowledgeBase(KnowledgeBase, Boolean, CancellationToken)

Source:
SearchIndexClient.KnowledgeBases.cs
Source:
SearchIndexClient.KnowledgeBases.cs

Deletes an existing knowledge base.

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

Parameters

knowledgeBaseKnowledgeBase
KnowledgeBase

The definition of the knowledge base 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

knowledgeBase is null.

Applies to

DeleteKnowledgeBase(String, CancellationToken)

Source:
SearchIndexClient.KnowledgeBases.cs

Deletes an existing knowledge base.

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

Parameters

knowledgeBaseName
String

The name of the knowledge base to delete.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

The Response from the server.

Exceptions

knowledgeBaseName is null.

Applies to

DeleteKnowledgeBase(String, MatchConditions, RequestContext)

Source:
SearchIndexClient.cs

[Protocol Method] Deletes a knowledge base.

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

Parameters

knowledgeBaseName
String

The name of the knowledge base.

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

knowledgeBaseName is null.

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

Service returned a non-success status code.

Applies to