Skip to content

Instantly share code, notes, and snippets.

@JKrag
Last active January 12, 2017 22:43
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 JKrag/9e1cdc0f17e51aea74c2c48c93aaecaa to your computer and use it in GitHub Desktop.
Save JKrag/9e1cdc0f17e51aea74c2c48c93aaecaa to your computer and use it in GitHub Desktop.
echo "--- Containers ------------------------------------------------------"
if [[ $(hyper ps -aq) ]]; then
echo "Deleting containers:"
hyper rm -v -f `hyper ps -aq`
else
echo "no containers found"
fi
echo "--- Volumes ---------------------------------------------------------"
if [[ $(hyper volume ls -q) ]]; then
echo "Deleting Volumes:"
hyper volume rm `hyper volume ls -q`
else
echo "no volumes found"
fi
echo "--- Images ----------------------------------------------------------"
if [[ $(hyper images -q) ]]; then
echo "Deleting Images:"
hyper rmi `hyper images -q`
else
echo "no images found"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment