From c3f84edbe4b7ebe5e4109e82b4173113504dc10b Mon Sep 17 00:00:00 2001 From: XinJun Ma Date: Sun, 15 Sep 2024 17:54:43 +0800 Subject: [PATCH] scripts: fix empty-incus.sh instances delete Signed-off-by: XinJun Ma --- scripts/empty-incus.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/empty-incus.sh b/scripts/empty-incus.sh index 286ea2f6b7f..8b991fc1024 100755 --- a/scripts/empty-incus.sh +++ b/scripts/empty-incus.sh @@ -6,9 +6,9 @@ fi ## Delete anything that's tied to a project for project in $(incus query "/1.0/projects?recursion=1" | jq .[].name -r); do - echo "==> Deleting all containers for project: ${project}" - for container in $(incus query "/1.0/containers?recursion=1&project=${project}" | jq .[].name -r); do - incus delete --project "${project}" -f "${container}" + echo "==> Deleting all instances for project: ${project}" + for instance in $(incus query "/1.0/instances?recursion=1&project=${project}" | jq .[].name -r); do + incus delete --project "${project}" -f "${instance}" done echo "==> Deleting all images for project: ${project}"