supermemory/apps/docs
sohamd22 069b8c373c docs(memories): forget-matching accepts an id list (bound preview→apply) (#1367)
### TL;DR

Documents the new `ids` parameter for the `forget-matching` endpoint, allowing exact memory deletion without semantic search.

### What changed?

The `forget-matching` endpoint now accepts either a `query` (semantic search-based forgetting) or an explicit `ids` list (direct deletion by memory ID) — one or the other must be provided. The docs have been updated to reflect this:

- The `query` parameter is now marked as `one of*` rather than required, and `ids` is introduced as an alternative with the same mutual-exclusivity constraint.
- `threshold` is clarified as applying to `query` mode only.
- Code examples for both JavaScript and cURL now show the recommended two-step pattern: run a `dryRun` with `query`, then apply using the `ids` returned from the preview — avoiding drift if the container changes between steps.
- A new `<Tip>` block explains why passing `ids` on the apply step produces a more deterministic delete than re-running the `query`.

### How to test?

1. Call `forget-matching` with `dryRun: true` and a `query` to retrieve candidate `id`s.
2. Re-call with `dryRun: false` and the `ids` from step 1 to confirm only those exact memories are forgotten.
3. Verify that passing `ids` belonging to a different `containerTag` are ignored.
4. Confirm that providing both `query` and `ids`, or neither, returns an appropriate validation error.

### Why make this change?

Re-running a `query` on the apply step can produce different results if the container was modified between the preview and the apply. Exposing `ids` as a first-class parameter lets callers pin the delete to exactly the set they reviewed, making bulk forgetting safer and more predictable.
2026-08-06 09:32:32 +00:00
..
.cursor/rules migrate docs to public 2025-09-28 16:42:06 -07:00
api-reference docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
company-brain fix docs image pipeline (#1411) 2026-08-04 04:55:50 +00:00
concepts docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
connectors fix docs links and assets (#1407) 2026-08-04 00:04:41 +00:00
images update supermemory mcp docs (#1408) 2026-08-04 19:58:49 +00:00
ingestion docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
integrations fix docs links and assets (#1407) 2026-08-04 00:04:41 +00:00
logo migrate docs to public 2025-09-28 16:42:06 -07:00
memorybench docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
migration docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
overview fix docs image pipeline (#1411) 2026-08-04 04:55:50 +00:00
recall docs(memories): forget-matching accepts an id list (bound preview→apply) (#1367) 2026-08-06 09:32:32 +00:00
self-hosting fix(docs): correct ingestion queue anchor (#1329) 2026-08-01 17:37:03 +05:30
smfs docs: SMFS documentation — providers, Python bash tool, examples (#889) 2026-04-28 20:04:15 -07:00
snippets fix docs image pipeline (#1411) 2026-08-04 04:55:50 +00:00
supermemory-mcp update supermemory mcp docs (#1408) 2026-08-04 19:58:49 +00:00
user-profiles docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
.gitignore migrate docs to public 2025-09-28 16:42:06 -07:00
agents-and-mcp.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
authentication.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
docs.json update supermemory mcp docs (#1408) 2026-08-04 19:58:49 +00:00
favicon.png migrate docs to public 2025-09-28 16:42:06 -07:00
index.mdx fix docs image pipeline (#1411) 2026-08-04 04:55:50 +00:00
install.md docs: align vibe-coding prompt + install guide with canonical API (#976) 2026-05-19 15:27:20 -07:00
package.json use portless 2026-05-06 22:42:34 -07:00
quickstart.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
README.md migrate docs to public 2025-09-28 16:42:06 -07:00
style.css feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
test.py docs changes (#678) 2026-01-18 16:55:32 -08:00
test.ts mastra integration (#717) 2026-02-03 00:43:08 +00:00
using-supermemory.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00

supermemory Docs