删除 LTM 记忆
DELETE/ltm/spaces/:space_id/memories/:record_id
按 record_id 删除一条记忆。列出 LTM 记忆 能返回的记录都能删除,包括 Space 共享的事实、Profile 和 Summary,权限和读取相同。
删除后,List、Search、Context 和托管 Chat 召回都读不到这条记录。它的修订历史也一并删除,只留下一条删除记录:删的是哪条、谁删的、什么时候删的,不含记录内容。
原始 Event 不会删除。之后的对话再提到同样的内容,或者删除时还没提炼完的 Event 里有这条信息,都会重新提炼出这条事实;Profile 和 Summary 会随这个用户或会话之后的 Event 重新生成。要删除某个用户的全部数据,用 擦除 LTM Actor 数据。
Request
Responses
- 200
- 401
- 404
- 409
已删除的记录。
Missing or invalid Turing authentication.
Space not found in the caller's scope (code 1751), or the record is missing, already deleted, expired, or a Reflection (code 1760).
The record's actor is being erased (code 1745).