From a19585a5879be81a93b130c8d2c763193fb22154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Fri, 22 Sep 2023 09:21:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Add=20clean=20up=20snippet=20for?= =?UTF-8?q?=20Scaleway=20PVC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prepare-labs/cleanup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prepare-labs/cleanup.sh b/prepare-labs/cleanup.sh index c61eba74..e8c519fe 100755 --- a/prepare-labs/cleanup.sh +++ b/prepare-labs/cleanup.sh @@ -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')." ;;