Last active
February 12, 2016 23:55
-
-
Save lonnen/2ba4e6bc60dd52f1775e to your computer and use it in GitHub Desktop.
heroku pr app cleanup script
This file contains hidden or 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
# we've been hitting a bug with PR apps under the older permissions system | |
# which leaves a bunch of dead ones lying around. this will clean them up. | |
# adjust the grep pattern and organization as necessary | |
for APP in `heroku apps -o $ORGANIZATION | grep -e -pr-` | |
do | |
heroku apps:destroy --app $APP --confirm $APP | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment