删除未被挂载的 Forward Memory Store。
删除未被挂载的 Memory Store,同时删除其中的所有 memory 条目和版本历史。
删除前会检查挂载关系:该 Store 只要仍被任意
HTTP 200 OK
(identity, template) 挂载,就返回 409。需要先解绑所有挂载再删除。已归档的 Store 不能删除。
路径
DELETE /api/v1/forward/memory_stores/{memory_store_id}
请求头
| 头部 | 必选 | 说明 |
|---|---|---|
Authorization | 是 | Bearer <PAT 或 admin SAT> |
路径参数
| 参数 | 类型 | 必选 | 说明 |
|---|---|---|---|
memory_store_id | string | 是 | Memory Store ID(memstore_...)。 |
示例请求
示例响应
HTTP 200 OK
响应字段解释
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 被删除的 Memory Store ID。 |
type | string | 固定为 memory_store_deleted。 |
deleted | boolean | 是否已删除。 |
错误码
| HTTP | type | 触发条件 |
|---|---|---|
| 400 | invalid_request_error | 路径参数非法。 |
| 401 | authentication_error | 缺少或无效的认证令牌。 |
| 403 | permission_error | 当前调用方无权访问该资源。 |
| 404 | not_found_error | Store 不存在或跨用户不可见。 |
| 409 | conflict_error | Store 已归档,或仍被 (identity, template) 挂载。 |
| 500/502/503 | api_error | Forward 或依赖服务失败。 |