From 312ad4620d5582d7500e9982959d6e8ad22ed79b Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Wed, 16 May 2018 08:05:12 -0700 Subject: [PATCH] purge plugin directory on `helm plugin remove plug` ><> ./bin/helm plugin remove lintr Error: Failed to remove plugin lintr, got error (remove /home/bacongobbler/.helm/plugins/helm-lintr: directory not empty) --- cmd/helm/plugin_remove.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/plugin_remove.go b/cmd/helm/plugin_remove.go index 104b5fda8..bbc284493 100644 --- a/cmd/helm/plugin_remove.go +++ b/cmd/helm/plugin_remove.go @@ -82,7 +82,7 @@ func (o *pluginRemoveOptions) run(out io.Writer) error { } func removePlugin(p *plugin.Plugin) error { - if err := os.Remove(p.Dir); err != nil { + if err := os.RemoveAll(p.Dir); err != nil { return err } return runHook(p, plugin.Delete)