---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [docs](../index.md) / clearContentCache

# Function: clearContentCache()

> **clearContentCache**(`includeDisk`): `void`

Defined in: [packages/b2c-tooling-sdk/src/docs/content-cache.ts:159](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/eee4a3582430c731fadd77072888a1468c2fe25b/packages/b2c-tooling-sdk/src/docs/content-cache.ts#L159)

Clears the in-memory cache (and optionally the on-disk cache). Intended for
tests and an explicit user "refresh docs" action.

## Parameters

### includeDisk

`boolean` = `false`

When true, also removes the on-disk cache directory

## Returns

`void`
