Created
November 15, 2023 15:01
-
-
Save johnybradshaw/294e4f15cb1d75ea35a809ffb3c6d295 to your computer and use it in GitHub Desktop.
Delete/Prune all unattached volumes on Linode (Akamai)
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 | |
# Prune all unattached volumes | |
linode-cli volumes list --json | jq -r '.[] | select(.linode_id == null) | .id' | xargs -I {} linode-cli volumes delete {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment