Threads - Delete Thread
Deletes an existing thread.
DELETE {endpoint}/threads/{threadId}?api-version=v1
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
endpoint
|
path | True |
string (uri) |
Project endpoint in the form of: https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name> |
|
thread
|
path | True |
string |
Identifier of the thread. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Status information about the requested thread deletion operation. |
|
| Other Status Codes |
An unexpected error response. |
Security
OAuth2Auth
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Scopes
| Name | Description |
|---|---|
| https://ai.azure.com/.default |
Examples
|
Threads_Delete |
|
Threads_Delete |
Threads_DeleteThread_MaximumSet
Sample request
DELETE {endpoint}/threads/qslbmcfelfehrfwrnrqbpix?api-version=v1
Sample response
{
"id": "nishfajsphilcedyxkpc",
"deleted": true,
"object": "thread.deleted"
}
Threads_DeleteThread_MinimumSet
Sample request
DELETE {endpoint}/threads/ajvailgkxrgzmhg?api-version=v1
Sample response
{
"id": "nishfajsphilcedyxkpc",
"deleted": true,
"object": "thread.deleted"
}
Definitions
| Name | Description |
|---|---|
|
Agent |
Describes the error information returned by the agents API. |
| AgentV1Error |
Error payload returned by the agents API. |
|
Thread |
The status of a thread deletion operation. |
AgentErrorDetail
Describes the error information returned by the agents API.
| Name | Type | Description |
|---|---|---|
| code |
string |
Machine-readable error code. |
| message |
string |
Human-readable description of the error. |
| param |
string |
Name of the parameter that caused the error, if applicable. |
| type |
string |
Error type identifier (e.g. |
AgentV1Error
Error payload returned by the agents API.
| Name | Type | Description |
|---|---|---|
| error |
Represents the error. |
ThreadDeletionStatus
The status of a thread deletion operation.
| Name | Type | Description |
|---|---|---|
| deleted |
boolean |
A value indicating whether deletion was successful. |
| id |
string |
The ID of the resource specified for deletion. |
| object |
enum:
thread. |
The object type, which is always 'thread.deleted'. |