Preview or Delete Memory
engram_delete_memoryPreview or permanently erase one private memory and its explicit derived patterns from the live database. Unlike engram_retract_memory, execution cannot be undone. Requires a human workspace OWNER API key; OAuth agents and member keys cannot erase. Does not delete independent memories or unrelated sessions.
Default dry_run=true returns counts, derived IDs, affected session IDs (first 50), scope and confirmation. Inspect it first: execution redacts the entire free-text history/checkpoints/task/context of referencing sessions, plus associated outcomes, links, jobs and linked evidence; shared entities remain if still referenced. Execute only the reviewed ID using dry_run=false and confirmation="delete:<memory_id>". Returns erased_at/counts; repeated execution returns the original minimal ID/count receipt without erased text (a one-way content fingerprint blocks exact store replays). In-flight background writes and exact store retries cannot repopulate erased knowledge. Historical unlinked paraphrases, already delivered client context, application/provider logs, provider copies and backups are outside this live-database operation. Public-bank records are excluded. Consumes daily call quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Default true previews impact without changing knowledge. False executes only with the exact confirmation string and human OWNER authority. | |
| memory_id | Yes | Exact id from a recalled memory; do not substitute a repository name, URL, or the memory text. | |
| confirmation | No | For execution only: copy delete:<exact memory_id> from the preview. Omit for preview; never substitute a repo name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The same bounded payload as content[0].text; interpret it using format. JSON text contains the endpoint-specific fields described by this tool. | |
| format | Yes | Payload encoding: Markdown context/checkpoint, serialized JSON data, or plain confirmation text. | |
| truncated | Yes | True when the payload exceeded 120,000 characters and was cut with a notice. Narrow the request; truncated JSON is not parseable. |