Skip to main content

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.

sdk.cache.clear_user(user_id)
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

user_id
string
required
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

Returns None.

Example

from maximem_synap import MaximemSynapSDK

sdk = MaximemSynapSDK(api_key="synap_your_key_here")

# Part of a GDPR right-to-be-forgotten workflow.
sdk.cache.clear_user("user_789")

Raises

This method does not raise SDK errors. See Error Codes for the full SDK exception hierarchy.

See also