diff --git a/internal/cli/cmd/kubeblocks/uninstall.go b/internal/cli/cmd/kubeblocks/uninstall.go index 6ebdd8e77..40c6d479e 100644 --- a/internal/cli/cmd/kubeblocks/uninstall.go +++ b/internal/cli/cmd/kubeblocks/uninstall.go @@ -168,7 +168,7 @@ func (o *UninstallOptions) Uninstall() error { helm.RemoveRepo(&repo.Entry{Name: types.KubeBlocksChartName})) // get KubeBlocks objects, then try to remove them - objs, err := getKBObjects(o.Dynamic, o.Namespace, o.addons) + objs, err := getKBObjects(o.Dynamic, "", o.addons) if err != nil { fmt.Fprintf(o.ErrOut, "Failed to get KubeBlocks objects %s", err.Error()) }