diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ea32098a355ad0692638fe77e2ce92a06a320832..0d1752b4526e5b70a2148743312293015566429d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
 stages:
   - build-and-publish
   - deploy
+  - cleanup
 
 build-and-publish:
   stage: build-and-publish
@@ -25,7 +26,6 @@ deploy-test:
     - conda activate test
     - conda build ./conda-recipe
     - conda install --use-local --only-deps pyzebra -y
-    - conda build purge-all
     - sudo systemctl restart pyzebra-test.service
 
 deploy-prod:
@@ -41,3 +41,8 @@ deploy-prod:
     - conda activate prod
     - conda update pyzebra -y
     - sudo systemctl restart pyzebra-prod.service
+
+cleanup-job:
+  stage: cleanup
+  script:
+    - conda build purge-all