KnowledgeBases.DeleteAsync 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
| Name | Description |
|---|---|
| DeleteAsync(WaitUntil, String, RequestContext) |
Deletes a KnowledgeBase, polling the resource until it is removed (HTTP 404). |
| DeleteAsync(WaitUntil, String, CancellationToken) |
Delete a KnowledgeBase. |
DeleteAsync(WaitUntil, String, RequestContext)
Deletes a KnowledgeBase, polling the resource until it is removed (HTTP 404).
public virtual System.Threading.Tasks.Task<Azure.Operation> DeleteAsync(Azure.WaitUntil waitUntil, string knowledgeBaseName, Azure.RequestContext context);
abstract member DeleteAsync : Azure.WaitUntil * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
override this.DeleteAsync : Azure.WaitUntil * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
Public Overridable Function DeleteAsync (waitUntil As WaitUntil, knowledgeBaseName As String, context As RequestContext) As Task(Of Operation)
Parameters
- waitUntil
- WaitUntil
Completed to wait for the resource to be removed; Started to return immediately.
- knowledgeBaseName
- String
The knowledgeBase name.
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The long-running operation for the delete request.
Exceptions
knowledgeBaseName is null.
knowledgeBaseName is an empty string, and was expected to be non-empty.
Applies to
DeleteAsync(WaitUntil, String, CancellationToken)
- Source:
- KnowledgeBases.cs
Delete a KnowledgeBase.
public virtual System.Threading.Tasks.Task<Azure.Operation> DeleteAsync(Azure.WaitUntil waitUntil, string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation>
override this.DeleteAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation>
Public Overridable Function DeleteAsync (waitUntil As WaitUntil, knowledgeBaseName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Operation)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- knowledgeBaseName
- String
The knowledgeBase name.
- 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.