Created
August 24, 2020 12:10
-
-
Save codepope/9609c20a982ace2d400531c9323079a7 to your computer and use it in GitHub Desktop.
Destroys all pending Fly instances (unused) using fly JSON and jq and xargs
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
fly list apps -o dj -s pending --json | jq ".[].Name" | xargs -I % fly destroy % -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment