+++
title = "Removing Bonsai From Heroku"
weight = 130
updated = 2024-05-16
aliases = ["/docs/how-to-remove-bonsai-from-your-heroku-app", "/docs/managed-search/elasticsearch-and-opensearch/deployment/heroku/removing-bonsai/", "/docs/deployment/heroku/removing-bonsai/"]

[extra]
weight = 99
+++

Bonsai Elasticsearch can be removed via the command line or Heroku's app Dashboard.

{% admonition(type="warning", title="Warning") %}
This will destroy all associated data and cannot be undone!
{% end %}

## Using the Command Line

The Bonsai Add-on can be removed from the application via Heroku's command line tool:

```bash
heroku addons:destroy bonsai
```

Output:

```
Removing bonsai from sharp-mountain-4005... done, v20 (free)
```

This will destroy the cluster and all of its data instantly.

## Using the Heroku Dashboard

To remove the Bonsai Add-on from the Heroku Dashboard, log in to your Heroku account and click on the app the Add-on is attached to. In this example, that Add-on is `mycoolelasticsearchapp`:

{{ image(src="heroku-app-overview.png", alt="Heroku App Overview", automatically_determine_ratio=true) }}

Next, click on the **Resources** tab:

{{ image(src="heroku-resources-tab.png", alt="Heroku Resources Tab", automatically_determine_ratio=true) }}

Find the Bonsai Add-on in the list of application Add-ons, then click the carot menu:

{{ image(src="bonsai-addon-menu.png", alt="Bonsai Add-on Menu", automatically_determine_ratio=true) }}

Select “Delete Add-on” from the list of options. You will need to type in the app's name to confirm the removal of the Bonsai Add-on:

{{ image(src="delete-addon-confirmation.png", alt="Delete Add-on Confirmation Modal", automatically_determine_ratio=true) }}

Click on “Remove Add-on” to complete the process.