Created
January 23, 2017 17:05
-
-
Save alex-kovshovik/c8ae5acaf395c64b8a1e2109cf238c3c to your computer and use it in GitHub Desktop.
Destroy many Heroku apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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