diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f7afbdc7e8531fc5ee6ad267081e77004dae31d6..efe1ae2399fbe660cb7f5ec45457e3a6a72a2714 100755
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,6 +34,7 @@ pages-devel:
   stage: deploy
   script:
     - echo $EXPORT_PAGES_DIR
+    - rm -r $EXPORT_PAGES_DIR/*
     - mkdir .public
     - cp -r css .public
     - cp -r images .public