How to remove Bonsai from your Heroku app

Bonsai Elasticsearch can be removed via the command line or Heroku’s app Dashboard.
Last updated
May 16, 2024

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


This will destroy all associated data and cannot be undone!

Using the Command Line

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

<div class="code-snippet-container">
<a fs-copyclip-element="click" href="#" class="btn w-button code-copy-button" title="Copy">
<img class="copy-image" src="" loading="lazy" alt="">
<img class="copied-image" src="" loading="lazy" alt="">
<div class="code-snippet">
<pre><code fs-codehighlight-element="code" fs-copyclip-element="copy-this">heroku addons:destroy bonsai
----- Removing bonsai from sharp-mountain-4005... done, v20 (free)</code></pre>

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 <span class="inline-code"><pre><code>mycoolelasticsearchapp</code></pre></span>:

Next, click on the Resources tab:

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

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:

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

View code snippet
Close code snippet
By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.