---
id: sdk.widgethandle.destroy
title: WidgetHandle.destroy()
hide_title: true
sidebar_class_name: sidebar-hidden
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@friendlycaptcha/sdk](./sdk.md) &gt; [WidgetHandle](./sdk.widgethandle.md) &gt; [destroy](./sdk.widgethandle.destroy.md)

## WidgetHandle.destroy() method

Destroy the widget.

This removes the `element` that the widget was mounted to as well as the hidden `frc-captcha-response` form field.

**Signature:**

```typescript
destroy(): void;
```
**Returns:**

void
