Bonsai Elasticsearch can be removed via the command line or Heroku’s app Dashboard.
This will destroy all associated data and cannot be undone!
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="https://global-uploads.webflow.com/63c81e4decde60c281417feb/6483934eeefb356710a1d2e9_icon-copy.svg" loading="lazy" alt="">
<img class="copied-image" src="https://global-uploads.webflow.com/63c81e4decde60c281417feb/64839e207c2860eb9e6aa572_icon-copied.svg" loading="lazy" alt="">
</a>
<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>
</div>
</div>
This will destroy the cluster and all of its data instantly.
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.