Remove build artifacts and caches across all project components
/plugin marketplace add hanibalsk/claude-marketplace/plugin install dev-agents@hanibalsk-marketplaceRemove build artifacts and caches across all project components.
.claude/hooks/play-tts.sh "Cleaning build artifacts"
echo "=== Current artifact sizes ==="
du -sh backend/target 2>/dev/null || echo "backend/target: not found"
du -sh frontend/node_modules 2>/dev/null || echo "frontend/node_modules: not found"
du -sh mobile-native/build 2>/dev/null || echo "mobile-native/build: not found"
du -sh mobile-native/.gradle 2>/dev/null || echo "mobile-native/.gradle: not found"
/clean - Clean build outputs only (safe):
# Rust
cd backend && cargo clean
# Node (build outputs, not node_modules)
cd frontend
rm -rf dist .next .turbo
# Kotlin
cd mobile-native && ./gradlew clean
/clean all - Full clean including dependencies:
# Rust
cd backend && cargo clean
# Node (including node_modules)
cd frontend
rm -rf dist .next .turbo node_modules
# Kotlin
cd mobile-native
./gradlew clean
rm -rf .gradle build
/clean rust - Clean only Rust:
cd backend && cargo clean
/clean node - Clean only Node:
cd frontend && rm -rf dist .next .turbo node_modules
/clean kotlin - Clean only Kotlin:
cd mobile-native && ./gradlew clean && rm -rf .gradle
echo "=== Space freed ==="
# Compare before/after
.claude/hooks/play-tts.sh "Cleanup complete. X gigabytes freed."
/clean - Clean build outputs (keeps dependencies)/clean all - Full clean including node_modules/clean rust - Clean only Rust target/clean node - Clean only Node artifacts/clean kotlin - Clean only Kotlin build