Created
November 5, 2013 16:21
-
-
Save mboersma/7321623 to your computer and use it in GitHub Desktop.
Removes all objects but your user-validator from Chef.
USE WITH CAUTION &c &c.
This file contains 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
#!/bin/bash | |
knife data bag delete -y deis-apps | |
knife data bag delete -y deis-formations | |
knife data bag delete -y deis-users | |
knife node bulk delete -y '.*' | |
#knife cookbook bulk delete -y '.*' | |
knife client bulk delete -y '^(?!.*?validator).*' | |
rm -f $HOME/.ssh/deis-controller* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment