Forgetting and erasure
Delete one memory
DELETE /v1/memories/{id} removes the memory and every earlier or later version in its update
chain, deletes entity links it created, removes entities nothing refers to any more, and scrubs
the text from related op-log entries. A DELETE entry without content records that it happened.
Erase a user
DELETE /v1/users/{uid} implements the right to erasure (GDPR article 17, India's DPDP Act
section 12). It returns an erasure id immediately and a background job deletes, under the user's
lock, all of their:
- turns and sessions
- memories, including embeddings and full-text vectors
- entities and entity links
- op log entries and queued jobs
- the user record itself
GET /v1/erasures/{id} reports completion and how many rows each table lost. The audit record
contains only a keyed hash of the user id, so you can prove an erasure happened without keeping
who it was about. Tests assert that no row for the user remains in any table and that search
returns nothing afterwards.
Expiry
Memories of types with a configured TTL are removed by a sweep every five minutes, leaving an
EXPIRE entry without content.
The public demo
Demo users are created per browser, rate limited per IP, and erased automatically 24 hours after they start. Erase me in the demo runs the same erasure immediately and shows what was deleted.