Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Last active August 29, 2015 13:56
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 marcoceppi/8977344 to your computer and use it in GitHub Desktop.
Save marcoceppi/8977344 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
JUJU_ENV=$1
if [ ! "$JUJU_ENV" ]; then
echo "Please run juju cleanup <environment>"
exit 1
fi
juju destroy-environment -y $JUJU_ENV || true
rm -f ~/.juju/environments/$JUJU_ENV.jenv
rm -rf ~/.juju/$JUJU_ENV || true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment