- Scroll to the end of the Settings page, and click Delete app…button:
- Click Delete app button to permanently undeploy the app. Heroku will delete all data used by the app, including installed add-ons.
- Type heroku apps:destroy -a <appname> to delete the app specified by <appname>. For example:
- Type the app’s name to confirm and hit Enter. Heroku will delete the app and associated data (including installed add-ons) permanently. NOTES:- You can destroy the app in a single command by putting --confirm=<appname> at the end like this:heroku apps:destroy -a codejava-app --confirm=codejava-app
- To learn more about the command syntax, type heroku help apps:destroyThat’s how to undeploy (delete) apps from Heroku using both web interface and CLI. I hope you found this article helpful. I recommend you watch the following video to see Heroku apps undeployment in action:
Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.