Documentation Index
Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt
Use this file to discover all available pages before exploring further.
clear_user() removes every cache entry whose user scope matches user_id, leaving other users’ cached data untouched. Pair this with the durable memory deletion APIs to honor right-to-be-forgotten requests end-to-end: this call handles the SDK’s local cache, while platform-side deletion ensures the user’s stored memories are removed from Synap itself.
This is a synchronous method — no await.
Parameters
The external user identifier whose cached data should be dropped. Must match the
user_id you originally passed to fetch(), memories.create(), or other scope-aware calls.Returns
ReturnsNone.
Example
Raises
This method does not raise SDK errors. See Error Codes for the full SDK exception hierarchy.See also
- cache.clear — drop the entire local cache.
- cache.clear_customer — drop one customer’s cached data.
- cache.stats — inspect hit rate and entry counts.