Skip to content

Instantly share code, notes, and snippets.

@rlafranchi
Created November 10, 2022 16:46
Show Gist options
  • Save rlafranchi/1e5d0702cc12cfc4f965dc7a89b1317f to your computer and use it in GitHub Desktop.
Save rlafranchi/1e5d0702cc12cfc4f965dc7a89b1317f to your computer and use it in GitHub Desktop.
Closing a heroku account requires all apps be destroyed first, here is a simple shell script to destroy all of your heroku apps using the heroku cli.
#!/bin/bash
heroku apps | while read app ; do
heroku apps:destroy $app --confirm $app
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment