Share via


AgentToolboxes.DeleteToolboxAsync Method

Definition

Overloads

Name Description
DeleteToolboxAsync(String, CancellationToken)

Delete a toolbox and all its versions.

DeleteToolboxAsync(String, RequestOptions)

[Protocol Method] Delete a toolbox and all its versions.

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

DeleteToolboxAsync(String, CancellationToken)

Source:
AgentToolboxes.cs

Delete a toolbox and all its versions.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> DeleteToolboxAsync(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteToolboxAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.DeleteToolboxAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function DeleteToolboxAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult)

Parameters

name
String

The name of the toolbox to delete.

cancellationToken
CancellationToken

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

Returns

Exceptions

name is null.

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

Service returned a non-success status code.

Applies to

DeleteToolboxAsync(String, RequestOptions)

Source:
AgentToolboxes.cs

[Protocol Method] Delete a toolbox and all its versions.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> DeleteToolboxAsync(string name, System.ClientModel.Primitives.RequestOptions options);
abstract member DeleteToolboxAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.DeleteToolboxAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function DeleteToolboxAsync (name As String, options As RequestOptions) As Task(Of ClientResult)

Parameters

name
String

The name of the toolbox to delete.

options
RequestOptions

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

name is null.

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

Service returned a non-success status code.

Applies to