diff --git a/build-book.sh b/build-book.sh
index 451671adad21b066fe98d2ef56ed8cc95df4e4c2..3d8dd6e46c022b0570ee8055eed47e59810499fe 100755
--- a/build-book.sh
+++ b/build-book.sh
@@ -6,7 +6,8 @@ START_SERVER=${1:-false}
 PAGE_ROOT=${2:-"/"}
 
 # Build the jupyter book, everything else is post-processing
-jupyter-book build book
+jupyter-book clean book/
+jupyter-book build book/
 
 # Note: the structure of thebe_lite mimicks where thing are needed in the html folder
 cp thebe_lite/* book/_build/html/ -r