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_customer(customer_id)
clear_customer() removes every cache entry whose customer scope matches customer_id, including any nested user-scoped entries that belong to that customer. Use it when offboarding a B2B tenant, when test fixtures need a clean slate, or when a customer’s data has drifted and you want to force a refresh from the platform. This is a synchronous method — no await.

Parameters

customer_id
string
required
The external customer identifier whose cached data should be dropped. Must match the customer_id you originally passed when populating the cache.

Returns

Returns None.

Example

from maximem_synap import MaximemSynapSDK

sdk = MaximemSynapSDK(api_key="synap_your_key_here")

# Customer is being offboarded — drop their cached context.
sdk.cache.clear_customer("cust_456")

Raises

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

See also