API Reference
Forget Memory
Forget one or more integer memory IDs in the current project and end-user scope.
Endpoint and request fields
DELETE/memory/forget
200 OK
| Field | Type | Contract |
|---|---|---|
memory_ids / memoryIds | integer[] | Required list of memory IDs. The official SDKs reject an empty list before sending. |
reason | string | Optional application reason. |
Forget selected memories
import osfrom memorysync import MemorySyncClientclient = MemorySyncClient(api_key=os.environ["MEMORYSYNC_API_KEY"],base_url="https://api.memorysync.io",project_id=os.environ["MEMORYSYNC_PROJECT_ID"],end_user_id="usr_7f3a9c2e",)forgotten_ids = client.forget([101, 102],reason="User requested deletion",)
Result paths
| Client | Result |
|---|---|
| Python | forgotten_ids is list[int]. |
| Node.js | forgottenIds is number[]. |
| REST | The response body is an array of integer IDs. |
200-response.json
[101,102]
Errors and next action
The official SDKs reject an empty ID list before sending. Correct 4xx credentials, scope, IDs, or fields before trying again. For an interrupted request, reconcile through customer-visible records rather than assuming deletion did or did not occur.
Safety notes
Destructive-operation workflow
- 01
Select
1Choose memory IDs through trusted application state.
- 02
Authorize
2Confirm the current user and product action may remove them.
- 03
Submit
3Send the IDs with an optional non-sensitive reason.
- 04
Verify
4Compare returned integer IDs with the requested set.
- 05
Reconcile
5If the response was interrupted, inspect customer-visible state before repeating.
Deletion boundaries
- The operation accepts selected memory IDs; it is not a substitute for deleting records in your source systems.
- Use the same trusted scope that was used to access the records.
- Do not accept arbitrary destructive IDs directly from an untrusted client.
- Keep user-facing completion language aligned with the IDs actually returned.
- Coordinate broader privacy or account-erasure workflows in your application where required.
Related reference
Was this page helpful?