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

# Destroy

> Method to cleanup and dispose the orderbook instance.

## Import

```ts theme={null}
import { Orderbook } from '@krono/core'
```

## Usage

Call this when the orderbook instance is no longer needed. It disconnects the socket, clears all memory buffers (history, price maps), and removes all event listeners.

```ts theme={null}
// When component unmounts or app closes
orderbook.destroy()
```

## Return Type

```ts theme={null}
void
```
