memory_forget
Remove or retire outdated, incorrect, or test data from memory, fact, world, or lesson stores. Hard-delete junk memories or facts, or retire world facts and lessons with an audit trail, preserving history.
Instructions
Forget from one memory store. memory and fact hard-delete
(cleanup for junk/test data — 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, and those OR-combine — ANY match
deletes, unlike memory_search's AND. The other scopes need entity.
Returns: {deleted_count | removed, ...}; {error} on bad input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | memory scope: delete entries carrying this tag. | |
| text | No | memory scope: delete entries whose text matches this exactly. | |
| scope | Yes | Which store to delete from. | |
| entity | No | fact/world scope: the slot's subject. lesson scope: the task. | |
| source | No | memory scope: delete entries with this source tag. | |
| episode | No | memory scope: delete 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: delete entries whose text contains this. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||