API
DELETE /memory
Delete removes a memory from retrieval surfaces and records an audit trail for reconstruction.
Delete contract
Deletion should identify memory by `memory_id` and scope context. The engine should remove vector/lexical references and write a deletion-log record for audits.
For fact memories, delete may trigger slot repair to recover latest valid predecessor.
{
"entity_id": "user-123",
"memory_id": "user-123::chat-82::42",
"reason": "user_requested_erasure"
}Safety guidance
- Require authorization stronger than read-only keys.
- Keep immutable delete audit logs.
- Return idempotent success for already-deleted IDs.
- Run periodic consistency checks across all indexes.
Verification
After delete, query the same prompt and confirm memory is absent from results. For fact deletes, verify current fact slot points to expected fallback record.