Skip to documentation
Docs navigation
Docs/forget()
MemoGrafterAgent

forget()

Soft-forget one memory.

What it does

Soft-forget one memory.

Forgetting is a soft lifecycle change. The record remains available for history and auditing but is excluded from active recall.

Signature

TypeScript
forget(memoryId: string): Promise<boolean>

Parameters

memoryId (string) — The memory record to inspect or change.

Result

true when a row changed; otherwise false.

Example

example.ts
const changed = await agent.forget(memoryId);