Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doctl compute volume list -o json | jq -c '.[] | select(.droplet_ids | length == 0) | [.id, .name]' | egrep "vol[0-9]+-[0-9]+" | jq '[.[]][0]' | xargs -i doctl compute volume rm {} -f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement