Share via


OpenAIAssistantAgent.DeleteThreadAsync(String, CancellationToken) Method

Definition

Caution

Use the OpenAIAssistantAgentThread to delete an existing thread. This method will be removed after May 1st 2025.

Deletes an assistant thread.

[System.Obsolete("Use the OpenAIAssistantAgentThread to delete an existing thread. This method will be removed after May 1st 2025.")]
public System.Threading.Tasks.Task<bool> DeleteThreadAsync(string threadId, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Use the OpenAIAssistantAgentThread to delete an existing thread. This method will be removed after May 1st 2025.")>]
member this.DeleteThreadAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function DeleteThreadAsync (threadId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

threadId
String

The thread identifier.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

The thread identifier.

Attributes

Applies to