🧹 Add clean up snippet for Scaleway PVC

This commit is contained in:
Jérôme Petazzoni
2023-09-22 09:21:29 +02:00
parent 354bd9542e
commit a19585a587

View File

@@ -21,6 +21,11 @@ digitalocean-pvc)
jq '.[] | select(.name | startswith("pvc-")) | .id' |
xargs -n1 -P10 doctl compute volume delete --force
;;
scaleway-pvc)
scw instance volume list --output json |
jq '.[] | select(.name | contains("_pvc-")) | .id' |
xargs -n1 -P10 scw instance volume delete
;;
*)
echo "Unknown combination of provider ('$1') and resource ('$2')."
;;