From d5317be80deb2b95a428fb4f00e08d11e1aee69c Mon Sep 17 00:00:00 2001 From: Aris Buzachis Date: Thu, 21 Dec 2023 16:26:08 +0200 Subject: [PATCH] [ND-7015] Fix the environment variables deletion Signed-off-by: Aris Buzachis --- cmd/variable/action/delete.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/variable/action/delete.go b/cmd/variable/action/delete.go index fa9177f..0880374 100644 --- a/cmd/variable/action/delete.go +++ b/cmd/variable/action/delete.go @@ -2,14 +2,11 @@ package action import ( "bunnyshell.com/cli/pkg/api/variable" - "bunnyshell.com/cli/pkg/config" "bunnyshell.com/cli/pkg/lib" "github.com/spf13/cobra" ) func init() { - settings := config.GetSettings() - deleteOptions := variable.NewDeleteOptions() command := &cobra.Command{ @@ -18,8 +15,6 @@ func init() { ValidArgsFunction: cobra.NoFileCompletions, RunE: func(cmd *cobra.Command, args []string) error { - deleteOptions.ID = settings.Profile.Context.Project - err := variable.Delete(deleteOptions) if err != nil { return lib.FormatCommandError(cmd, err)