diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3db0849fdf56396a3d92d42890e7db63ad712a71..fdf9d689d4873b2ae9e8fdbc4858306766463dbb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,23 @@
 stages:
+  - clean
   - build
   - restart
 
+clean-blockchain-data:
+  stage: clean
+  tags:
+    - FairCoin.Co
+  only:
+    refs:
+      - master
+    variables:
+      - $CMD =~ /clean/
+  script:
+    - docker-compose down
+  after_script:
+    - echo ${CI_BUILDS_DIR} > ~/test.txt
+    - rm -R ~/.faircoin2
+
 build-faircoind:
   stage: build
   tags: