Last active
June 12, 2017 09:52
-
-
Save RaphaelAudet/621ee163417a22962fe0b16717cb10c6 to your computer and use it in GitHub Desktop.
CloudFoundry destroy apps and services onliners
This file contains hidden or 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
# FIXME theses scripts dont really play well if the app or services names have spaces | |
# WARNING theses onlinerss are destructive, please dont copy/paste this without understanding what you are doing, k? | |
# alias to got to the cloud foundry bluemix test environment and remove all apps and all services with "example" | |
alias NukeBluemix="export CF_HOME=~/.cf/profiles/bluemix && \ | |
cf apps | grep .eu-gb.mybluemix.net | awk '{print $1}' | xargs -n 1 cf d -f -r && \ | |
cf s | grep example | awk '{print $1}' | xargs -n 1 cf ds -f" | |
# the same as above but for "example" services only | |
alias NukeBluemixServices="export CF_HOME=~/.cf/profiles/bluemix && cf s | grep example | awk '{print $1}' | xargs -n 1 cf ds -f" | |
# the same as above but for "travis" services only | |
alias NukeBluemixTravis='export CF_HOME=~/.cf/profiles/bluemix && cf s | grep travis | awk '\''{print }'\'' | xargs -n 1 cf ds -f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and for docker