DeleteDataAgent
Deletes a specified DataAgent. After the DataAgent is deleted, its name is released and can be reused to create a new DataAgent.
Operation description
Deletion is irreversible
After deletion, the configurations of the DataAgent, such as the display name, description, system prompt, assumed RAM role, and associated context model, cannot be recovered. If you need the same configurations later, call GetDataAgent to record the current configurations before deletion.
When the DataAgent does not exist
If the name in the path does not exist under the current account, the request fails and returns a resource not found error.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:DeleteDataAgent |
delete |
*DataAgent
|
None | None |
Request syntax
DELETE /dataagents/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the DataAgent to delete. This parameter is passed in the request path. If the DataAgent does not exist, a 404 error is returned. |
order-analysis-agent |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.