OpenAIAssistantAgent.DeleteAsync(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.
Caution
Use the OpenAI.Assistants.AssistantClient to remove or otherwise modify the Assistant definition. This method will be removed after May 1st 2025.
Deletes the assistant definition.
[System.Obsolete("Use the OpenAI.Assistants.AssistantClient to remove or otherwise modify the Assistant definition. This method will be removed after May 1st 2025.")]
public System.Threading.Tasks.Task<bool> DeleteAsync(System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Use the OpenAI.Assistants.AssistantClient to remove or otherwise modify the Assistant definition. This method will be removed after May 1st 2025.")>]
member this.DeleteAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function DeleteAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
true
if the assistant definition was deleted.
- Attributes
Remarks
An assistant-based agent is not usable after deletion.