Skip to documentation
Docs navigation
Docs/forgetMany()
MemoGrafter

forgetMany()

Use forgetMany with an application-managed session scope.

What it does

Use forgetMany with an application-managed session scope.

The batch form applies the same soft-forget behavior to multiple records and reports how many records actually changed.

Signature

TypeScript
forgetMany(memoryIds: string[]): Promise<number>

Parameters

memoryIds (string[]) — Memory records to change in one operation.

Result

The number of records changed by the operation.

Example

example.ts
const result = await memo.forgetMany(/* identifiers and options */);