Skip to content

Instantly share code, notes, and snippets.

@softwaregravy
Created March 13, 2012 20:30
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 softwaregravy/2031358 to your computer and use it in GitHub Desktop.
Save softwaregravy/2031358 to your computer and use it in GitHub Desktop.
Delete old beanstalk application versions
elastic-beanstalk-describe-application-versions -a APPLICATION_NAME | sed '1,2d' | sed '/CURR_APP_VERSION/d' | cut -d '|' -f 6 | xargs -L 1 elastic-beanstalk-delete-application-version -a APPLICATION_NAME -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment