DISK-SIFT
Find large files, duplicate copies, caches, stale build output, and unused desktop or Microsoft Store apps on Windows drives. Runs without admin rights by default, switches to direct NTFS $MFT reading when elevated, and never deletes anything without asking.
Parallel rayon pool (one thread per logical CPU). About 19 s warm or 55 s cold on 2.14M files. Never follows junctions or hydrates OneDrive files.
Hard-linked OS folders such as C:\Windows\WinSxS read larger than physical disk usage until elevated.
Matches running processes, Windows 11 PCA launch logs, Steam manifests and localconfig.vdf, and Explorer UserAssist across desktop and Store apps.
System-owned caches (C:\Windows\Temp and SoftwareDistribution\Download) stay read-only until elevated.
| Category | Targets | Minimum | Risk | Action |
|---|---|---|---|---|
| Temporary & dumps | %TEMP%, C:\Windows\Temp, Minidump, CrashDumps, WER |
10–50 MB | [ok] safe | Empty folder |
| Windows Update | C:\Windows\SoftwareDistribution\Download (admin) |
100 MB | [ok] safe | Empty folder |
| Shader & browser caches | D3DSCache, NVIDIA & AMD shader caches, Chrome, Edge, Brave, Vivaldi caches, Playwright | 200–300 MB | [ok] safe | Empty folder |
| Package caches | npm, pip, Yarn, pnpm, Go, Cargo (cache + unpacked src), uv, Gradle, NuGet | 200 MB–1 GB | [ok] safe | Empty folder |
| Stale build output | node_modules, Cargo target, .next, obj, Gradle build untouched 14+ days |
100 MB | [ok] safe | Recycle |
| Recycle Bin | Recycle Bin across all fixed drives | 100 MB | [ok] safe | Empty Recycle Bin |
| Active builds & venvs | Recently modified build folders and Python .venv / venv |
100 MB | [!] review | Recycle |
| Emulators & disk images | Android SDK system images / AVDs, old .iso .img .vhd .vmdk .qcow2 .wim (30+ days) |
500 MB–1 GB | [!] review | Recycle |
| Old downloads & large files | Installers and archives in Downloads (30+ days), large videos and other files (180+ days) | 100 MB–2 GB | [!] review | Recycle |
| Unused apps | Desktop and Store apps unused 120+ days, or no record and installed 180+ days ago (1 GB+) | 300 MB | [!] review | Uninstall + prompt |
| Virtual disks & OS files | WSL / Hyper-V .vhdx compaction hints, hiberfil.sys, Windows.old |
4 GB+ / OS | [i] info | Guidance only |
What each action does
- Empty folder
- Deletes contents inside verified cache or temp directories and keeps the directory. Locked or in-use files are skipped and reported.
- Move to Recycle Bin
- Uses
SHFileOperationWwithFOF_ALLOWUNDOandFOF_WANTNUKEWARNINGso Windows warns if an item exceeds the bin limit. - Uninstall & leftover prompt
- Runs each desktop app’s own registered uninstaller (converting
MsiExec /Ito/X) orRemove-AppxPackagefor Store apps. When the uninstaller finishes, disk-sift lists remaining app data folders and prompts before moving anything to the Recycle Bin. - Duplicate finder
- On-demand 2-stage parallel SHA-256 (exact size, first/last 64 KiB, then full hash) skipping Windows, Program Files, git, and build trees.
Protected paths in Rust
Every disk-changing function lives in crates/sift-core/src/actions.rs and runs protected_reason() before touching anything, regardless of UI input.
- Drive roots & volume metadata
C:\,D:\,$Recycle.Bin,System Volume Information,Recovery- Windows directory
- All of
C:\WindowsexceptTemp,SoftwareDistribution\Download, andMinidump - Program installations
Program Files,Program Files (x86),ProgramData\Microsoft- Top-level user folders
Users, profile root,AppData,Documents,Desktop,Downloads,Pictures,Music,Videos,OneDrive
Desktop + read-only terminal
Build & CLI
No Node.js or frontend build step. Release builds link the MSVC runtime statically (zero external DLL dependencies) and require only Windows 10/11 x64 with WebView2.
git clone https://github.com/Real-Fruit-Snacks/disk-sift
cd disk-sift
cargo build --release
# Desktop app
.\target\release\disk-sift.exe
disk-sift-cli scan C:
[ok] C:\ scanned in 19.06 s (2,139,646 files)
[!] 132 folders skipped without admin rights
disk-sift-cli suggest C: --json
disk-sift-cli dupes C:\Users --min-mb 25
disk-sift-cli apps
disk-sift-cli scan <root> [--top N] [--threads N] [--json]- Scans a fixed drive or folder and prints the largest folders and files by allocated bytes on disk.
disk-sift-cli suggest <root> [--json]- Runs the full suggestion rule set and app inventory without changing anything on disk.
disk-sift-cli dupes <root> [--min-mb N] [--json]- Finds exact-content duplicate files with 2-stage SHA-256 and groups them by wasted space.
disk-sift-cli apps [--json]·disk-sift-cli drives [--json]- Lists installed desktop and Store apps with last-used timestamps, or lists fixed local drives with free space. Respects
NO_COLOR; exit codes0ok,1runtime error,2usage error.
Tested on
- Windows 11 x64, Rust stable: daily workstation with 2.1M+ file NTFS SSD (both standard user and administrator modes).
- Windows Server (GitHub Actions):
cargo fmt,cargo clippy -D warnings, unit test suite, and locked release build on every push. - Not supported: Linux and macOS (scanner uses Windows NT directory and NTFS volume APIs directly).
Known limits
- Without admin rights, hard links are counted per directory entry (making
C:\Windows\WinSxSappear larger); running as administrator switches to direct$MFTreading and deduplicates them. - NTFS directory entries can lag slightly for files that are currently open and growing until closed.
- CLI tools and background runtimes that never open a window may show no launch record without admin; elevated mode adds Prefetch.
- Removable, optical, and network drives are omitted from the drive picker (use Folder to scan a specific path).