# element.destroy()

> Unmounts the element and drops its handlers.

Source: https://docs.tryyoursize.com/reference/web/element-destroy/

*Method* · `@tryyoursize/sdk`

Unmounts the element and drops its handlers. Create a new element to show it again.

```ts
destroy(): void;
```

## Example

**JavaScript**

```js
// Single-page apps: when the product view goes away
guide.destroy();
```

**React**

```tsx
// React components destroy their element on unmount.
```
