diff --git a/debian/rules b/debian/rules
index 6d76bc17188fff62c71f39ee0a6c35b07f996c7d..feec36ef1033b58d2f03ed43d9147290e1dcd229 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,6 @@ export DH_GOLANG_EXCLUDES = vendor
 	dh $@ --with golang --buildsystem golang
 
 override_dh_install:
-	rm -fr $(CURDIR)/debian/tmp/usr/share/gocode
+	rm -fr $(CURDIR)/debian/apache-exporter/usr/share/gocode
 	dh_install