---
url: >-
  https://canary.warp-drive.io/api/@warp-drive/utilities/string/functions/clear.md
description: >-
  Empties the cached results of `singularize` and `pluralize` while keeping all
  inflection rules.
---

# &#x20;clear()&#x20;

```ts
function clear(): void;
```

Defined in: [-private/string/inflect.ts:97](https://github.com/warp-drive-data/warp-drive/blob/4418225138f47a5fe1f4d7ca2b61c01e985a415d/warp-drive-packages/utilities/src/-private/string/inflect.ts#L97)

Clears the caches for singularize and pluralize.

## Returns

`void`
