diff --git a/cmd/kubectl-testkube/commands/scripts/deleteall.go b/cmd/kubectl-testkube/commands/scripts/deleteall.go index 6611231b8c2..dcae848ad31 100644 --- a/cmd/kubectl-testkube/commands/scripts/deleteall.go +++ b/cmd/kubectl-testkube/commands/scripts/deleteall.go @@ -7,7 +7,6 @@ import ( ) func NewDeleteAllScriptsCmd() *cobra.Command { - var name string cmd := &cobra.Command{ Use: "delete-all", Short: "Delete all scripts", @@ -16,10 +15,11 @@ func NewDeleteAllScriptsCmd() *cobra.Command { namespace := cmd.Flag("namespace").Value.String() client, _ := common.GetClient(cmd) + err := client.DeleteScripts(namespace) ui.ExitOnError("delete all scripts from namespace "+namespace, err) - ui.Success("Succesfully deleted", name) + ui.Success("Succesfully deleted all scripts in namespace", namespace) }, } diff --git a/cmd/kubectl-testkube/commands/tests/deleteall.go b/cmd/kubectl-testkube/commands/tests/deleteall.go index 68746363be3..823406f2e1b 100644 --- a/cmd/kubectl-testkube/commands/tests/deleteall.go +++ b/cmd/kubectl-testkube/commands/tests/deleteall.go @@ -15,10 +15,9 @@ func NewDeleteTestsCmd() *cobra.Command { client, namespace := common.GetClient(cmd) - name := args[0] err := client.DeleteTests(namespace) ui.ExitOnError("delete all tests from namespace "+namespace, err) - ui.Success("Succesfully deleted", name) + ui.Success("Succesfully deleted all tests in namespace", namespace) }, }