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

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

# Function: purgeContentCache()

> **purgeContentCache**(): [`ContentCacheStats`](../interfaces/ContentCacheStats.md)

Defined in: [packages/b2c-tooling-sdk/src/docs/content-cache.ts:207](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/docs/content-cache.ts#L207)

Purges the docs content cache (both tiers) and reports what was on disk before
removal, for a user-facing "clear cache" command.

## Returns

[`ContentCacheStats`](../interfaces/ContentCacheStats.md)

The pre-purge on-disk stats (files/bytes freed).
