safe-sweep

Free up disk space. Delete only what you tick.

safe-sweep finds caches, build leftovers and old node_modules on your machine. It sorts them by how safe they are to remove and shows real sizes. Nothing is deleted until you tick it and confirm.

$npm install -g @d-beloved/safe-sweep
$safe-sweep

Or try it once without installing:

$npx @d-beloved/safe-sweep

macOS and Linux · Node 20 or newer · No dependencies · MIT

The safe-sweep page after a scan, showing free space, three totals and a list of caches with sizes

The page after a scan. Sample sizes.

It runs on your machine, not in the cloud

safe-sweep is a small page served from your own computer at 127.0.0.1:4777. There is no account, no sign-in, no network calls and no telemetry. This website only explains it. The tool itself never leaves your machine.

How it works

Three steps. Sizes are measured, not estimated.

  1. Scan

    Press Scan. safe-sweep measures caches, leftovers and dormant projects.

  2. Tick

    Tick what you want gone, one by one or with Select all on each list. Clear selection unticks everything.

  3. Clean

    Confirm. You see what each item freed and how much free space you really gained.

Three lists, sorted by risk

Every item lands in one of three lists, so you always know what a delete will cost you.

Safe to clear

Caches and leftovers that rebuild themselves. Nothing of yours is lost.

Docker build cache, npm, yarn, pnpm, bun and uv caches, brew cleanup, browser and app caches.

Safe, costs a reinstall

Comes back with a download or an install command.

node_modules in projects idle for 60 days with a committed lockfile, Hugging Face models, Chrome's on-device AI model.

Your call

Shown so you know where space went. Never deleted by safe-sweep.

Downloads, Trash, videos, old Node versions, installers, system package caches.

Built to refuse first

This tool deletes files, so the defaults lean hard towards saying no.

Commands

The page does everything, but the terminal works too.

CommandWhat it does
safe-sweepOpens the page. Stops after 15 idle minutes.
safe-sweep scanPrints the list in the terminal. Deletes nothing.
safe-sweep schedule weeklyChecks every week and notifies you if space is low. Never deletes.
safe-sweep logShows what was cleaned, when, and how much it freed.