Skip to content

Instantly share code, notes, and snippets.

@codepope
Created August 24, 2020 12:10
Show Gist options
  • Save codepope/9609c20a982ace2d400531c9323079a7 to your computer and use it in GitHub Desktop.
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
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