diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e6bdf6b5e60a3defd1db1a16070ce4a205486768..4ec55203237f6a59c07009a37e7692c4aa885fa8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,14 +25,13 @@ build-template:
     - git add .
     - git commit -m 'Test'
     - git push --dry-run -u origin test
+    - rm -r .venv
+    - rm -r .git
   # cannot use needs, for artifacts on child pipeline so must regenerate template!
   artifacts:
     paths:
       - my_awesome_app/*
       - project.gitlab-ci.yml
-    exclude:
-      - my_awesome_app/.venv
-      - my_awesome_app/.git
 
 # Spawn pipeline using the gitlab-ci.yml from generated template instance
 # use project.gitlab.ci.yml for necessary job overrides from this template instance