***

title: clearCache
slug: /reference/typescript/agents/configuration/schema-utils/clear-cache
description: Clear the validation result cache.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Clear the validation result cache. Useful when the schema has been reloaded
or when you want to force re-validation.

## **Parameters**

None.

## **Returns**

`void`

## **Example**

```typescript {5}
import { SchemaUtils } from '@signalwire/sdk';

const schema = new SchemaUtils();
schema.validate(someDocument);
schema.clearCache();
console.log(schema.getCacheSize()); // 0
```