| # Cleanup script - removes temporary files and scripts from toy-wm-hf-space | |
| set -e | |
| echo "๐งน Cleaning up temporary files..." | |
| echo "" | |
| CLEANUP_DIR="/share/u/wendler/code/toy-wm-hf-space" | |
| if [ ! -d "$CLEANUP_DIR" ]; then | |
| echo "โ ๏ธ Directory $CLEANUP_DIR doesn't exist, skipping cleanup" | |
| exit 0 | |
| fi | |
| cd "$CLEANUP_DIR" | |
| echo "Removing temporary scripts..." | |
| rm -f push.sh push-now.sh push-force.sh setup-git.sh setup.sh fix-remote.sh fix-and-push.sh push-to-hf.py 2>/dev/null || true | |
| echo "Removing temporary documentation files..." | |
| rm -f RUN_SETUP.md TROUBLESHOOTING.md SETUP_STEPS.md SETUP_GUIDE.md QUICKSTART.md START_HERE.md 2>/dev/null || true | |
| echo "Keeping essential files:" | |
| echo " โ app.py" | |
| echo " โ Dockerfile" | |
| echo " โ requirements.txt" | |
| echo " โ README.md" | |
| echo " โ DEPLOYMENT.md" | |
| echo " โ SOURCE_FILES.md" | |
| echo " โ .gitignore" | |
| echo " โ All source code and checkpoints" | |
| echo "" | |
| echo "โ Cleanup complete!" | |
| echo "" | |
| echo "The toy-wm-hf-space directory still contains your files" | |
| echo "but temporary scripts have been removed." | |