Freigeben über


AIProjectAgentsOperations.DeleteAgentVersion Method

Definition

Deletes a specific version of an agent.

public virtual System.ClientModel.ClientResult DeleteAgentVersion(string agentName, string agentVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAgentVersion : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult
override this.DeleteAgentVersion : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult
Public Overridable Function DeleteAgentVersion (agentName As String, agentVersion As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult

Parameters

agentName
String

The name of the agent to delete.

agentVersion
String

The version of the agent to delete.

cancellationToken
CancellationToken

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

Returns

Exceptions

agentName or agentVersion is null.

agentName or agentVersion is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to