AIProjectAgentsOperations.DeleteAgent(String, CancellationToken) 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.
Deletes an agent.
public virtual System.ClientModel.ClientResult DeleteAgent(string agentName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAgent : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult
override this.DeleteAgent : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult
Public Overridable Function DeleteAgent (agentName As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult
Parameters
- agentName
- String
The name of the agent to delete.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
agentName is null.
agentName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.