diff --git a/Makefile b/Makefile
index 0cd66b2d4fc481fec3cf2a1d207093ba0aafc0d0..10f09920c00f24baab7090a29171addca2b353e4 100644
--- a/Makefile
+++ b/Makefile
@@ -416,7 +416,8 @@ _clean:
 	rm -f main/version.c
 	rm -f doc/core-en_US.xml
 	rm -f doc/full-en_US.xml
-	rm -f docs/rest-api/*.wiki
+	rm -f doc/rest-api/*.wiki
+	rm -f rest-api-templates/*.pyc
 	@$(MAKE) -C menuselect clean
 	cp -f .cleancount .lastclean