Skip to content

Instantly share code, notes, and snippets.

@alex-kovshovik
Created January 23, 2017 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex-kovshovik/c8ae5acaf395c64b8a1e2109cf238c3c to your computer and use it in GitHub Desktop.
Save alex-kovshovik/c8ae5acaf395c64b8a1e2109cf238c3c to your computer and use it in GitHub Desktop.
Destroy many Heroku apps
#!/bin/bash
# THIS DESTROYS MANY HEROKU APPS!!!!
# USE CAUTION!
# ИСПОЛЬЗУЙ ВНИМАНИЕ!
KEYWORD = diesel
heroku apps -A | grep $KEYWORD | cut -d' ' -f1 | xargs -L1 bash -c 'app=$0; heroku apps:destroy --app $app --confirm $app'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment