From 5eb48f4471ac3aa9a3c87a07ee6f9e5bbc60a0e1 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Thu, 7 Feb 2019 13:08:45 -0800 Subject: [PATCH] purge plugin directory on `helm plugin remove plug` (#4068) ><> ./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 a0ff78ceb..30e3c092c 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)