None of the answers above describe how to destroy the Heroku database, which was the original question (and what brought me here to find the answer).
From their documents , any of them will work:
heroku addons:destroy heroku-postgresql:tier (where tier is the database level, for example hobby-dev )heroku addons:destroy HEROKU_POSTGRESQL_<COLOR> (if you have more than one database at this level)
Please note that since this is a destructive action, it will prompt you to confirm the action. If you want to use this in a script, you can skip the prompt with something like this:
heroku addons:destroy HEROKU_POSTGRESQL_<COLOR> --confirm <appname>
Hope this is helpful!
JacobEvelyn Feb 19 '15 at 16:29 2015-02-19 16:29
source share