---
updatedAt: 2026-05-07T18:17:26.000Z
agentTools:
  projectIndex: https://docs.joinforage.app/llms.txt
---

# destroy()

`element.destroy()`

Removes the  [`EBT Element`](https://docs.joinforage.app/reference/ebt-elements) from the DOM and destroys it. A destroyed element cannot be re-mounted to the DOM.

## Example

### Destroy a `ForagePinElement`

In this example, the `ForagePinElement` is used for a balance check:

```javascript
balanceElement.destroy()
```

# Sibling pages

* [clear()](https://docs.joinforage.app/reference/clear.md)
* [mount()](https://docs.joinforage.app/reference/mount.md)
* [on()](https://docs.joinforage.app/reference/on.md)