-
-
Save naaman/1384970 to your computer and use it in GitHub Desktop.
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done |
thanks
+1
God bless you man
Thanks dude!
So beautiful because it just works just like that. This should be a community QA on SO
+1
+1
Nice. Just a slight modification
for app in $(heroku apps | awk 'NR>1 {print}'); do echo $app; heroku apps:destroy --app $app --confirm $app; done
This would remove the "===My Apps==" section too
indeed Great stuff !! many thanks
Nice!!
+1
thank you!
Thank you. I love it !
thanks
Thanks for this man, it saved my boss hours of work when he wanted to change a certificate :D
+1
Awesome!!!!!
parabens.. e muito obrigadão
Thanks!
awsm!!!
nice - thanks naaman
awesome
it Works Thanks.....
Thank you!
I ran this command carelessly thinking it would apply to Heroku apps based off the current directory structure...
Now I've lost a production database... and I must ask, why would anyone EVER need this script? Who on earth has so many throw-away Heroku apps that it is actually too much work for them to run the heroku apps:destroy calls individually, typing in the confirmation every time? Someone mentioned they used it to change a certificate... what?? What kind of workflow requires the destruction of dozens of heroku apps to change a certificate? Why would any workflow need this?
Please prefix this with more of a warning. It looks like I'm not the only one to fall into this google-paste trap.
Please, add unicode support!
+1 10q
Awesome, thank you
@crj1001 I'm really sorry that happened. I hope you were able to ultimately restore your stuff :/
I forgot I even made this and only just used it to delete all my personal test apps as I'm leaving Heroku (as my employer, not the product). I updated the subject with a giant warning, but seems like it's still useful so am leaving this around.
Worked like a charm! Thanks a lot.