diff --git a/bin/compile b/bin/compile
index 773766b37dea7e2fad41c4557639bfa66acde64d..619d573709c1a56203ddf7156bdce584dd334451 100755
--- a/bin/compile
+++ b/bin/compile
@@ -65,6 +65,8 @@ bpwatch start anvil_appdir_stage
   if [ "$SLUG_ID" ]; then
     mkdir -p $TMP_APP_DIR
     deep-mv $APP_DIR $TMP_APP_DIR
+  else
+    deep-rm $APP_DIR
   fi
 bpwatch stop anvil_appdir_stage