# tools.erase

Part of [Tools](https://kernstra.com/docs/web-sdk/config/tools) in the Kernstra Web SDK 1.0.0 configuration reference.

- Type: `boolean | EraseConfig`
- Default: `on, within the mode`
- Page: https://kernstra.com/docs/web-sdk/config/tools/erase

Universal eraser tool; it can remove the page's own content. Needs the `annotations` license feature. Takes an `EraseConfig` object (or `true`, the same as `{}`) for the brush sizes, in points. A `minSize`, `maxSize` or `defaultSize` that is not a positive number keeps its default. A `maxSize` below `minSize` is raised to it, and a `defaultSize` outside them is brought inside; each correction is reported with a console warning.

```ts
tools: { erase: { minSize: 4, maxSize: 32, defaultSize: 12 } }
```

### `erase.minSize`

- Type: `number`
- Default: `6`
- Page: https://kernstra.com/docs/web-sdk/config/tools/erase-minsize

Smallest brush, in points.

### `erase.maxSize`

- Type: `number`
- Default: `64`
- Page: https://kernstra.com/docs/web-sdk/config/tools/erase-maxsize

Largest brush, in points. One below `minSize` is raised to it.

### `erase.defaultSize`

- Type: `number`
- Default: `24`
- Page: https://kernstra.com/docs/web-sdk/config/tools/erase-defaultsize

Brush a session starts with, in points. One outside `minSize`–`maxSize` is brought inside.

Web page: https://kernstra.com/docs/web-sdk/config/tools/erase
