Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Forget and redact

memo-mcp forget memo://doc/0199… --reason "superseded by the 2026 policy"
memo-mcp forget memo://fact/0199… --reason "wrong owner" --redact
forgetforget --redact
Leaves every index (keyword, exact, vectors, graph)yesyes
Excluded from search, including under as_ofyesyes
Address resolves to “forgotten on … because …”yesyes
Text kept in the fileyesno: cleared
Pages built from itmarked stalemarked stale
Audit rowyesyes
  • --reason is required and is shown to anyone who dereferences the address later.
  • MCP tool calls may forget only agent-trust records. The CLI may forget anything.

Reclaiming disk space

SQLite does not shrink the file when rows are cleared. After large redactions, compact it while no process has the file open:

sqlite3 ~/.memo-mcp/kb/my-project.db 'VACUUM'

VACUUM also removes freed pages that might still hold redacted bytes. Run it after redacting secrets.