memory_forget
Delete or retire entries from memory stores: hard-delete memories/facts or retire world/lesson slots with an audit trail, selected by scope.
Instructions
Forget from one memory store. memory hard-deletes entries
(junk/test cleanup), retiring their digests and facts/edges left
unsupported; fact hard-deletes (no audit trail); world and lesson
RETIRE the slot with an audit row, undone by memory_graph_review( action="restore_slot"). For "now wrong, keep history" use
memory_fact_set (facts) or memory_supersede (memories) instead.
scope="memory" needs at least one of text/substring/
source/episode/tag; several NARROW the match (AND, like
memory_search): text + source is one entry, not the whole source.
Over memory.delete_confirm_threshold (20) matches it refuses with
would_delete until confirm_bulk=True. The other scopes need
entity.
Returns: {deleted_count | removed, ...}; {error} on bad input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | memory scope: entries carrying this tag. | |
| text | No | memory scope: entries with exactly this text. | |
| scope | Yes | Which store to delete from. | |
| entity | No | fact/world scope: the slot's subject. lesson scope: the task. | |
| source | No | memory scope: entries with this source tag. | |
| episode | No | memory scope: entries stamped with this episode id. | |
| attribute | No | fact/world scope: one slot's attribute; omit to purge the whole entity. lesson scope: the aspect. | |
| substring | No | memory scope: entries whose text contains this. | |
| confirm_bulk | No | memory scope: allow over memory.delete_confirm_threshold (20) matches; else refused, reporting would_delete. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||