diff --git a/command/common/install_plugin_command_test.go b/command/common/install_plugin_command_test.go
index <HASH>..<HASH> 100644
--- a/command/common/install_plugin_command_test.go
+++ b/command/common/install_plugin_command_test.go
@@ -4,6 +4,7 @@ import (
 	"errors"
 	"fmt"
 	"math/rand"
+	"os"
 	"strconv"
 
 	"code.cloudfoundry.org/cli/actor/pluginaction"
@@ -29,6 +30,7 @@ var _ = Describe("install-plugin command", func() {
 		fakeActor   *commonfakes.FakeInstallPluginActor
 		executeErr  error
 		expectedErr error
+		pluginHome  string
 	)
 
 	BeforeEach(func() {
@@ -44,11 +46,16 @@ var _ = Describe("install-plugin command", func() {
 		}
 
 		tmpDirectorySeed := strconv.Itoa(int(rand.Int63()))
-		fakeConfig.PluginHomeReturns(fmt.Sprintf("some-pluginhome-%s", tmpDirectorySeed))
+		pluginHome = fmt.Sprintf("some-pluginhome-%s", tmpDirectorySeed)
+		fakeConfig.PluginHomeReturns(pluginHome)
 		fakeConfig.ExperimentalReturns(true)
 		fakeConfig.BinaryNameReturns("faceman")
 	})
 
+	AfterEach(func() {
+		os.RemoveAll(pluginHome)
+	})
+
 	JustBeforeEach(func() {
 		executeErr = cmd.Execute(nil)
 	})
delete temp directories created by install-plugin tests