> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endstate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# resetReaderCache

> Forget the memoized reader, so the next `pickReader` builds a new one. Disconnect first if it holds a device. Mainly for tests and for re-probing after the environment changes.

Forget the memoized reader, so the next `pickReader` builds a new one. Disconnect first if it holds a device. Mainly for tests and for re-probing after the environment changes.

```ts theme={null}
import { resetReaderCache } from "@endstate-sdk/reader";
```

```ts theme={null}
resetReaderCache(): void
```

## Example

```ts theme={null}
await reader.disconnect?.();
resetReaderCache();
```
