DeleteThread
Deletes a session under the specified DataAgent.
Operation description
After a session is deleted, it can no longer be queried by using GetThread or GetThreadData, and it cannot be recovered. Proceed with caution. Repeatedly calling this operation on the same session does not result in an error.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:DeleteThread |
delete |
*DataAgent
|
None | None |
Request syntax
DELETE /dataagents/{name}/threads/{threadId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the DataAgent, which is passed in the request path to specify the DataAgent to which the session belongs. |
order-analysis-agent |
| threadId |
string |
No |
The ID of the session to delete, which is passed in the request path and returned by CreateThread. |
thread-tiirv9-irwdoal8t4rm |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. Only the request ID is returned upon successful deletion. |
||
| requestId |
string |
The ID of the request, which is used to locate the call during troubleshooting. |
5B0A6B60BB6EE39764D458B5 |
Examples
Success response
JSON format
{
"requestId": "5B0A6B60BB6EE39764D458B5"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.