Skip to main content
Threads

删除线程

删除指定的线程。

DELETE
/threads/{thread_id}
cURL
curl --request DELETE \
  --url 'https://dashscope.aliyuncs.com/api/v1/threads/{thread_id}' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "id": "thread_c7ebb0ca-2e4f-43e5-b223-6e1f8c6fccc7",
  "object": "thread.deleted",
  "deleted": true,
  "request_id": "b4edb7b8-5855-9787-b5c3-0374ee2b3b2c"
}

Authorizations

string
header
required

DashScope API Key,在控制台 API Key 页面(https://bailian.console.aliyun.com/settings/apikey)获取。请求头格式:Authorization: Bearer $DASHSCOPE_API_KEY。

Path Parameters

string
required

待删除的 thread ID。

Response

200-application/json
Managed Agent API
Flow Agent API
RAG API
Connector API
框架集成
  • 框架
Assistant API(下线中)