From ee4315adb3be29e1872eb0e1d328763b49649aa9 Mon Sep 17 00:00:00 2001 From: Moritz Date: Thu, 30 Mar 2023 13:40:44 +0200 Subject: [PATCH] fix(rm): remove volumes correctly during app removal --- cli/app/remove.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/app/remove.go b/cli/app/remove.go index 6c0378e8..ace1a609 100644 --- a/cli/app/remove.go +++ b/cli/app/remove.go @@ -120,8 +120,7 @@ flag. } if len(vols) > 0 { - var removeVols []string - for _, vol := range removeVols { + for _, vol := range vols { err := cl.VolumeRemove(context.Background(), vol, internal.Force) // last argument is for force removing if err != nil { logrus.Fatal(err)