Skip to main content
Session & Event

Delete Session

Hard-delete a session

DELETE
/api/v1/agentstudio/sessions/{session_id}
cURL
curl --request DELETE \
  --url 'https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/sessions/{session_id}' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "id": "sesn_xxx",
  "type": "session_deleted",
  "request_id": "xxx"
}

Authorizations

string
header
required

DashScope API Key

Path Parameters

string
required

Response

200-application/json
string

被删除的会话 ID

string

固定为 session_deleted,标识删除成功

string

本次请求的唯一标识

Overview
Sandbox API
Memory API
Flow Agent API
RAG API
Connector API
Framework Integration
Assistant API (Deprecating)
  • Overview