Skip to content

Instantly share code, notes, and snippets.

@lonnen
Last active February 12, 2016 23:55
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 lonnen/2ba4e6bc60dd52f1775e to your computer and use it in GitHub Desktop.
Save lonnen/2ba4e6bc60dd52f1775e to your computer and use it in GitHub Desktop.
heroku pr app cleanup script
# 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