Windows-native deep cleaner & system optimization CLI, now with a desktop app
A single-binary, zero-dependency terminal utility that cleans caches, analyzes disk usage, monitors system health, and purges developer artifacts, with a 7-day undo for what it removes.
# Install (PowerShell one-liner)
irm https://raw.githubusercontent.com/Nur-Adnan/Duster/main/scripts/install.ps1 | iex
# Run
du # Menu with system overview
du status # Live system dashboard
du clean # Deep cache cleanup
du analyze . # Interactive disk explorer
Duster # The desktop app (GUI), installed beside du.exe| Command | What it does |
|---|---|
du |
Interactive menu: overview, drivers, startup apps, network, security |
du clean |
Scans and cleans 34 cache categories (list) |
du status |
Live CPU (usage, temperature), RAM, disk, network and battery dashboard |
du analyze [path] |
Disk usage explorer; shows what grew since the last scan of the same folder |
du purge |
Removes node_modules, target, dist, .gradle, vendor and other build output |
du restore |
Lists and brings back what purge, uninstall and installer removed (7 days) |
du uninstall |
Runs an app's uninstaller, then sweeps its leftovers |
du installer |
Finds old .exe / .msi installers in Downloads |
du vdisk |
Shrinks WSL and Docker virtual disks (.vhdx) that grow but never shrink (admin) |
du schedule |
Cleans safe caches automatically (weekly by default, or when the drive runs low), never as admin |
du optimize |
Flushes DNS, clears Delivery Optimization, optimizes drives (admin); --deep cleans WinSxS via DISM |
du doctor |
Environment, privilege and terminal diagnostics |
du benchmark |
Scan, delete, memory and JSON engine benchmarks |
du verify |
Self-tests: protected paths, link guards, dry runs, registry safety |
du update |
Self-update with SHA-256 verification and rollback |
du remove |
Uninstalls Duster and deletes its data |
--json works on most commands for scripting. Every command that deletes has --dry-run, and none deletes without asking unless you pass --yes. Details per release: CHANGELOG.md.
Undo. purge, the uninstall leftover sweep and installer move what they remove into a quarantine on the same drive (no copy) for 7 days, or less if the drive drops below 10% free. du restore <n> brings a session back and never overwrites. purge --permanent deletes for good right away.
Scheduled cleaning runs through duw.exe, a windowless launcher next to du.exe, so no console window appears. It cleans only caches that rebuild themselves (temp, browser caches but never cookies or history, thumbnails, error reports, crash dumps, shader caches); --add npm,gradle,... opts developer and app caches in.
What Duster reports but never deletes: Windows.old and the hibernation file (du optimize shows their size and how to remove them), and the WSL sparse-disk setting (du vdisk).
du clean --dry-run shows what each would free. --whitelist npm,browsers skips categories.
The PowerShell one-liner in Quick Start is the recommended way.
Installer options
.\install.ps1 -Version "1.3.0" # Specific version
.\install.ps1 -InstallDir "C:\Tools" # Custom directory
.\install.ps1 -Silent # No output (CI/automation)
.\install.ps1 -Force # Reinstall same versionFrom CMD:
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/Nur-Adnan/Duster/main/scripts/install.ps1 | iex"Setup exe or portable zip: download Duster-Setup-<version>-x64.exe or Duster-<version>-Portable-<arch>.zip from Releases. Keep du.exe, duw.exe and Duster.exe in the same folder, on your PATH.
Duster.exe is a native Windows app (WinUI 3) for Windows 10 1809 or later and Windows 11, x64 or ARM64. It ships from v1.4.0 inside every install method below, beside du.exe, and uses du.exe as its engine, so keep both in the same folder. There is no separate Duster.exe download on the Releases page: it comes inside the setup exe and the portable zip.
1. Install it (pick one):
| Method | What to do | Where Duster.exe ends up |
|---|---|---|
| PowerShell one-liner | Run the command from Quick Start | %LOCALAPPDATA%\Duster\Duster.exe (or C:\Program Files\Duster if Windows blocks apps in AppData; the installer tells you) |
| Setup exe (x64) | From Releases, download Duster-Setup-<version>-x64.exe and run it |
C:\Program Files\Duster\Duster.exe, or %LOCALAPPDATA%\Programs\Duster\Duster.exe if you install for yourself only |
| Portable zip (x64 or ARM64) | From Releases, download Duster-<version>-Portable-x64.zip (or -arm64.zip), right-click > Extract All |
Duster-<version>-Portable-<arch>\Duster.exe in the folder you extracted to |
Not sure which zip? Settings > System > About > System type: "x64-based processor" means x64, "ARM-based processor" means ARM64.
2. Open it:
- Start menu: search for Duster (setup installs; the CLI shortcut is Duster Command Line). The setup can also add a desktop icon.
- Terminal: run
Duster(the one-liner and the setup put its folder on your PATH; open a new terminal after installing). - File Explorer: paste the folder from the table above into the address bar and double-click
Duster.exe.
Can't find it? In PowerShell, Get-Command Duster.exe prints its full path. If it prints nothing, run du update (it adds Duster.exe to installs from before v1.4.0), or reinstall.
Pages: Home (system overview), Clean, Restore and Analyze. Everything else is still in the CLI for now. The app runs without administrator rights; for categories that need them (Prefetch), use Restart as administrator on the Clean page. Every delete asks first, and Restore brings back what Duster kept for 7 days. Windows may show a SmartScreen prompt the first time, because the binaries are not code-signed yet (see Code signing policy).
Scoop / winget: not published yet; manifests are staged in scripts/manifests/.
Uninstall: du remove (also removes Duster.exe), Settings > Apps for a setup install, or
irm https://raw.githubusercontent.com/Nur-Adnan/Duster/main/scripts/uninstall.ps1 | iex| Key | Action |
|---|---|
↑↓ / jk |
Navigate |
Enter / → / l |
Open folder |
⌫ / ← / h |
Back |
c |
What changed since the last scan (Enter jumps to the item) |
o |
Open in Explorer |
d |
Send to Recycle Bin (asks first) |
L |
Largest files view |
q |
Quit |
| Protection | How |
|---|---|
| Protected paths | System folders and Windows.old are never deleted; system dirs resolve via Win32, not env vars |
| Links | Never follows symlinks, junctions or reparse points |
| OneDrive | Skips cloud-only files, so a scan never downloads them |
| Undo | User-facing deletes go to the quarantine or Recycle Bin first (du restore) |
| Admin only when needed | Asks for elevation only for tasks that need it (Windows caches, defrag, vdisk, DISM); scheduled cleans never elevate |
| Audit log | Every delete is logged to %LOCALAPPDATA%\Duster\operations.log (DU_NO_OPLOG=1 disables) |
Report a vulnerability: SECURITY.md.
Free code signing provided by SignPath.io, certificate by SignPath Foundation. Signing starts once the project's SignPath Foundation application is approved; releases before that are unsigned. Who approves releases, what gets signed, and the privacy statement: docs/code-signing.md.
git clone https://github.com/Nur-Adnan/Duster.git
cd Duster
go build -trimpath -ldflags="-s -w" -o du.exe .
go build -trimpath -ldflags="-s -w -H=windowsgui" -o duw.exe ./launcher/duw
go test ./...Release builds: make build.
Duster/
├── main.go # Entry point (cobra root `du`)
├── cmd/ # One file per command, Bubble Tea TUIs
├── launcher/duw/ # duw.exe, windowless launcher for scheduled cleans
├── lib/
│ ├── elevation/ # UAC elevation
│ ├── fs/ # Path safety checks
│ ├── sysinfo/ # System stats, CPU temperature
│ └── uninstall/ # Installed apps from the registry
├── internal/logging/ # Operation log
├── e2e/ # Windows end-to-end tests (real du.exe in a console)
├── installer/ # Inno Setup script
├── scripts/ # install / uninstall scripts, package manifests
└── landing/ # Project website (Next.js)
MIT License. Copyright © 2026 Nur Adnan