<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@friendlycaptcha/sdk](./sdk.md) &gt; [WidgetHandle](./sdk.widgethandle.md) &gt; [reset](./sdk.widgethandle.reset.md)

## WidgetHandle.reset() method

Reset the widget, removing any progress.

Optional argument: an object with the name of the trigger that caused the reset. You would usually keep this empty. This is the `trigger` field in the `frc:widget.reset` event, which defaults to `root`<!-- -->.

**Signature:**

```typescript
reset(opts?: WidgetResetOptions): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

opts


</td><td>

[WidgetResetOptions](./sdk.widgetresetoptions.md)


</td><td>

_(Optional)_


</td></tr>
</tbody></table>

**Returns:**

void

