Created
June 17, 2019 15:19
-
-
Save adam-stokes/433899ec9c068d3fb802b293d8a440ad to your computer and use it in GitHub Desktop.
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
for row in $(echo "$(sudo lxc list --format json)" | jq -r '.[] | @base64'); do | |
_jq() { | |
echo ${row} | base64 --decode | jq -r ${1} | |
} | |
sudo lxc delete --force $(_jq '.name') | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment