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

> Clear all locally-cached SDK data for a single customer (B2B tenant).

```python theme={null}
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

<ParamField path="customer_id" type="string" required>
  The external customer identifier whose cached data should be dropped. Must match the `customer_id` you originally passed when populating the cache. Customer scoping is a B2B concern. See [B2C vs B2B](/concepts/memory-scopes#b2c-vs-b2b-which-scopes-apply-to-you).
</ParamField>

### Returns

Returns `None`.

### Example

```python theme={null}
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](/sdk-reference/errors) for the full SDK exception hierarchy.

### See also

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