diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b9c296b36bde6ac609a63fa808b0fba808238078..ede9013a8b3d3f63b0afb628ba0da9ba371a2994 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,7 +22,7 @@ doc:
         - export LC_ALL=$(locale -a | grep en_US)
         - export LANG=$(locale -a | grep en_US)
         - pip3 install -e .[doc]
-        - rm -Rf build/sphinx/html
+        - rm -Rf build/sphinx
         - python3 setup.py build_sphinx
     artifacts:
         paths: