SearchIndexClient.DeleteKnowledgeSource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| DeleteKnowledgeSource(String, CancellationToken) |
Deletes an existing knowledge source. |
| DeleteKnowledgeSource(KnowledgeSource, Boolean, CancellationToken) |
Deletes an existing knowledge source. |
DeleteKnowledgeSource(String, CancellationToken)
Deletes an existing knowledge source.
public virtual Azure.Response DeleteKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteKnowledgeSource : string * System.Threading.CancellationToken -> Azure.Response
override this.DeleteKnowledgeSource : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteKnowledgeSource (sourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- sourceName
- String
The name of the knowledge source to delete.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
The Response from the server.
Exceptions
sourceName is null.
Applies to
DeleteKnowledgeSource(KnowledgeSource, Boolean, CancellationToken)
Deletes an existing knowledge source.
public virtual Azure.Response DeleteKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource * bool * System.Threading.CancellationToken -> Azure.Response
override this.DeleteKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource * bool * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteKnowledgeSource (knowledgeSource As KnowledgeSource, Optional onlyIfUnchanged As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- knowledgeSource
- KnowledgeSource
The definition of the knowledge source 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
knowledgeSource is null.