> ## 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.

# cache.clear

> Clear all locally-cached SDK data, including fetched context bundles and anticipation entries.

```python theme={null}
sdk.cache.clear()
```

`clear()` wipes the SDK's in-process cache: every scope, every user, every customer. This affects only the local cache layer; durable memory stored on the Synap platform is untouched. The cache repopulates lazily on subsequent `fetch()` calls. Useful in tests, in long-running processes that need to drop stale entries, or when you want to force a fresh round-trip to the platform.

This is a synchronous method, no `await`.

### Parameters

This method takes no parameters.

### Returns

Returns `None`.

### Example

```python theme={null}
from maximem_synap import MaximemSynapSDK

sdk = MaximemSynapSDK(api_key="synap_your_key_here")

# Drop every locally-cached entry; the next fetch() will hit the platform.
sdk.cache.clear()
```

### Raises

This method does not raise SDK errors. See [Error Codes](/sdk-reference/errors) for the full SDK exception hierarchy.

### See also

* [cache.clear\_user](/sdk-reference/cache/clear-user): drop one user's cached data (GDPR).
* [cache.clear\_customer](/sdk-reference/cache/clear-customer): drop one customer's cached data.
* [cache.stats](/sdk-reference/cache/stats): inspect hit rate and entry counts.
