Overview
Thecactus clean command removes all build artifacts, intermediate files, and caches to free up disk space or ensure a fresh build.
Usage
- Build directory (
build/) - Compiled libraries (
.so,.a,.dylib) - Object files (
.o) - CMake cache files
- Python build artifacts
- Temporary files
What Gets Preserved
The following are NOT removed:
- Downloaded model weights in
weights/ - Your source code
- Configuration files
- The
cactusCLI itself
When to Use
Runcactus clean when:
- Switching between build targets (iOS ↔ Android)
- Encountering build errors
- Freeing up disk space
- Starting a fresh build after code changes
- Resolving CMake configuration issues
Example Workflow
Disk Space Recovered
Typical space freed bycactus clean:
- Debug build: ~500MB - 1GB
- Release build: ~200MB - 400MB
- Multiple targets: ~1GB - 2GB
Cleaning Weights
To also remove downloaded models:Cleaning Python Cache
To clean Python-specific caches:See Also
cactus build
Build native libraries
Installation
Initial setup and installation