---
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/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/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`
