POST/api/v1/indices/rag/app/deletecURLcURLCopycurl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/indices/rag/app/delete" \ -H "Authorization: Bearer $DASHSCOPE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "aid-8f3a1b2c4d5e6f70" }'200400Copy{ "request_id": "d4e5f6a7-b8c9-0123-defa-234567890123", "status_code": 200, "code": "Success", "message": "", "status": "SUCCESS", "success": true, "data": { "agent_id": "aid-8f3a1b2c4d5e6f70", "agent_status": "deleted" } }软删除 Agent(标记状态为 deleted),接口幂等:重复删除不会返回错误。 删除 Agent 需要知识库-删除权限。 删除操作不可逆,删除后 Agent 无法恢复,关联的 agent_id 将无法用于 knowledge/search 和 knowledge/chat 调用。AuthorizationsAuthorizationstringheaderrequiredDashScope API Key,在控制台 API Key 页面 获取。Bodyapplication/jsonagent_idstringrequiredAgent ID。Response200-application/jsonrequest_idstring请求唯一标识,排查问题时请提供此 ID。status_codeintegerHTTP 状态码。codestring响应码,成功时为 Success。messagestring提示信息。statusenum<string>请求状态:SUCCESS 或 FAILED。Available options:SUCCESS,FAILEDsuccessboolean请求是否成功。dataobjectShow child attributesdata.agent_idstringAgent ID。data.agent_statusstringAgent 状态,删除后为 deleted。