AnthropicClaude 托管智能体
删除记忆
删除记忆库中的一条记忆。
DELETE
/anthropic/v1/memory_stores/{memory_store_id}/memories/{memory_id}○ 未支持请求参数
memory_store_idstring必填path: 记忆库 ID(路径或查询参数)。
memory_idstring必填path: 记忆 ID(路径或查询参数)。
memory_store_idstring必填query: 记忆库 ID(路径或查询参数)。
expected_content_sha256string可选query: 期望的内容 SHA-256,用于并发修改保护。
返回
501 平台还没有实现这个端点;调用会得到下面这个响应:
平台还没有提供智能体可读写的持久记忆库。调用会返回 501(not_implemented_error),不产生副作用,官方 SDK 不会重试。
错误按 Claude Managed Agents 格式返回,参见 错误码
响应
HTTP 200
Successful response
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| id | string | ID of the deleted memory (a `mem_...` value). |
| type | string |