Delete what your tools can rebuild.

Finds node_modules, target folders and package caches, and leaves everything else.

Version 0.4.0, free and open source under the MIT license.

DevSweep after a scan: project folders sorted by size, each with its type, when it last changed and how it comes back

invoice-apiRust

target

6.1 GB

Comes back with cargo build

Rebuilds on its own

data-pipelinePython

.venv

2.8 GB

Comes back with python -m venv .venv

Check first

Only folders a project owns

A folder counts only when its project file sits next to it. Names like build or target also need the build tool’s own files inside.

FolderNeeds next to itComes back with
node_modulespackage.jsonnpm install
Rust targetCargo.tomlcargo build
Gradle buildbuild.gradlegradle build
.NET bin and obja .csproj filedotnet build
Python .venvpyproject.tomla new venv, marked check first
Unity LibraryProjectVersion.txtopening the project

All 42 folder types and the global caches

How it stays safe

It locks what is in use

A folder can’t be picked while a program or a dev tool runs inside its project.

In use by cargo

Never half-deleted

A folder is renamed before anything inside it goes.

node_modules.devsweep-trash

Stays out of installed apps

The scan never enters these.

  • Program Files
  • AppData
  • .git
  • /usr
  • Steam

Docker and WSL

Docker frees its own space. WSL disks get compacted.

docker builder prune --all

Package caches too

  • npm
  • pnpm
  • Cargo
  • pip
  • Gradle
  • NuGet
  • Go

Rust target folders alone took 63 GB of a 100 GB drive.

On the machine DevSweep was written on.

Download DevSweep 0.4.0

Windows 10 or 11 with WebView2, any 64-bit Linux, or macOS 11 or later.

The installer and the AppImage update themselves. The Windows files are not code-signed yet, so Windows shows “Windows protected your PC” the first time. Click More info, then Run anyway. See signing and checksums.

The macOS build for Apple Silicon and Intel Macs is experimental. It hasn’t been tried on a real Mac yet, and macOS asks you to allow it the first time. See the macOS notes.

All releases and notes

SystemFileSize
Windows installerDevSweep_0.4.0_x64-setup.exe3.3 MB
Windows portableDevSweep_0.4.0_x64-portable.zip4.5 MB
Debian, UbuntuDevSweep_0.4.0_amd64.deb4.7 MB
Fedora, openSUSEDevSweep-0.4.0-1.x86_64.rpm4.7 MB
Any LinuxDevSweep_0.4.0_amd64.AppImage83 MB
macOS, experimentalDevSweep_0.4.0_universal.dmg7.5 MB

Signing and checksums

Every download is built on GitHub-hosted runners from the source at the release tag by the release workflow.

Code signing
Not yet for the Windows files. The release workflow can already sign through SignPath, so Windows signing starts once the project has a certificate.
Updates
Signed. DevSweep checks every update against the public key built into the app and refuses one that doesn’t match.
Checksums
Each release from 0.4.0 on has a SHA256SUMS.txt. Compare it with Get-FileHash in PowerShell or sha256sum --check on Linux.
Privacy
DevSweep sends nothing about you or your files. Its one network request checks GitHub Releases for a new version at start and once a day, and can be turned off. GitHub’s privacy statement covers it.