OpenAIClient.DeleteAssistantAsync

OpenAIClient.DeleteAssistantAsync method

Deletes an existing assistant asynchronously.

public Task<DeleteStatusResponse> DeleteAssistantAsync(string assistantId, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
assistantIdStringThe ID of the assistant to delete.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the status of the delete operation.

Exceptions

exceptioncondition
AIClientExceptionThrown when the assistant Id is null or empty.

See Also