Trivial to use and fast disk cleanup
This action is designed exclusively for GitHub-hosted Ubuntu runners. If run on other environments (local machines, self-hosted runners, or non-Linux systems), it will:
- ⏭️ Skip all deletions (no-op mode)
- ✅ Exit successfully without errors
This ensures safe testing and prevents accidental data loss.
Default (recommended): 7.6 GiB freed in ~4 seconds
- uses: eclipse-score/more-disk-space@v1
with:
level: 2 # Default| Level | Freed Space | Duration | Efficiency | What Gets Deleted |
|---|---|---|---|---|
| 1 | 3.7 GiB | ~1s | 3.7 GiB/sec | swift, chromium |
| 2 | 7.6 GiB | ~4s | 1.9 GiB/sec | +aws-cli, haskell |
| 3 | 12.3 GiB | ~16s | 0.8 GiB/sec | +miniconda, dotnet |
| 4 | 22.2 GiB | ~40s | 0.6 GiB/sec | +android |
- Existing cleanup actions are 4–5× slower:
- APT overhead: Package manager queries, dependency checks, validation
- Extra thoroughness: Scanning for edge cases that more-disk-space simply ignores
- Trade-Offs:
- Different models: LVM expansion trades root space (see alternatives)
- Usability
- what gets deleted: Focused on known large items safe for S-CORE workflows
- simple: Sorted list by deletion speed, not a list of deletable items
Removes:
- Swift compiler (~1.5 GiB)
- Chromium browser (~0.4 GiB)
Impact: Safe unless building iOS/macOS apps or testing web UIs locally.
Adds to Level 1:
- AWS CLI v2 (~0.75 GiB)
- Haskell compiler & ghcup (~1.25 GiB)
Impact: Safe unless using Haskell or AWS CLI directly (most workflows use SDKs or pre-cached tools).
Adds to Level 2:
- Miniconda Python environment (~1.5 GiB)
- .NET runtime & SDKs (~1.5 GiB)
Impact: Safe unless using Conda Python or building C#/F#/VB.NET projects.
Adds to Level 3:
- Android SDK (~5.5 GiB) — slowest item, the bottleneck
Impact: Safe unless building Android/Flutter/React Native apps.
Why those 4 levels?
Need more space or different trade-offs?
See docs/alternatives.md.