Routine direct removal
Many caches rebuild. Logs, temp files and saved state may hold unique information; recovering those needs a backup.
Examples: sections 3, 5, 7, 8A macOS cleanup tool you can inspect
Choose a section, preview its paths, then decide whether to run it. macleanup asks before destructive work by default.
npm, yarn, pnpm, Homebrew and other package caches. The exact files depend on your Mac.
npx macleanup --only 3 --dry-runTHE DECISION
Caches, old build output, logs and personal files can sit close together. A broad delete command cannot explain the difference. macleanup splits the work into named sections so you can inspect one consequence at a time.
Start with the report and preview. Keep a separate backup for anything you cannot recreate.
A first run can stay entirely in preview mode until the path list makes sense.
npx macleanup --list names the available work.
npx macleanup --dry-run --all shows the safe batch without deleting files. It may write normal logs and reports.
Use the interactive menu or --only. Read the prompt before confirming a destructive section.
These examples use the documented section rules. They do not scan your Mac.
Targets npm, yarn, pnpm, Homebrew and other package caches. Downloads may be needed again later.
npx macleanup --only 3 --dry-runRead the specific section before treating a deleted file as recoverable.
Many caches rebuild. Logs, temp files and saved state may hold unique information; recovering those needs a backup.
Examples: sections 3, 5, 7, 8Orphaned app data, selected apps and large stale files can go to Trash. They can be restored until Trash is emptied.
Examples: sections 12, 21, 24Backups, archives, snapshots, build directories, selected stale launch items and Trash contents can be removed directly. Your backup is the recovery path.
Examples: sections 10, 11, 16, 17, 23, 25THE DEFAULT BATCH
--all has a boundary.It selects sections 0, 3, 5, 7, 8, 9, 15, 18, 22, 26. Deeper operations stay out of this batch, even with --yes.
“Safe batch” describes its selection rule. Review the paths before running it.
For unattended batch use, six high-risk sections require both --yes and --i-understand-deep. Section 25 needs the same pair before it removes stale launch items in batch mode. The interactive menu asks you to select items.
Section 10 empties Trash. The minimal profile does not include it.
Sections 12 and 21 use Finder to move selected items to Trash. Permission failure leaves the affected item in place and reports the failure.
Trash is temporary recovery only. Section 10 can empty it later.
Choose a section for the tool you use. The dev profile includes section 23, which removes stale build directories directly.
DATA FLOW
By default, the script makes no network calls. Logs and reports stay under ~/.macleanup/. An optional version check contacts npm, which receives normal request metadata such as an IP address.
npx may also download the package from npm before the script starts.
Choose by what it includes, then preview the whole list. A profile name does not make every action reversible.
User caches, logs, old top-level temp files and update caches. It leaves Trash alone.
npx macleanup --profile minimal --dry-runFor path lists and all conditions, use the documentation.
All questions and answersIt deletes no files. It can still write the tool's normal logs and reports.
Only some sections move items to Trash. Direct deletion needs your own backup; macleanup has no undo command.
The browser-cache section targets cache subdirectories, not saved passwords, bookmarks or history. Review the section list before running it.
That depends on the files on your Mac. Read the dry-run estimate and disk-usage report; there is no promised amount.
THE DESKTOP APP
The macleanup app runs the same script on your Mac and adds a disk gauge that shows snapshot-held space, a dry-run ledger you can read path by path, and a receipt for every run.
The command, script, data folder and config file now share one name. Run macleanup or npx macleanup. The first 5.x run copies your earlier logs and reports into ~/.macleanup/ and leaves the originals in place. Every safety limit from 4.7 is unchanged.
Preview the safe batch, read the paths, then run only the sections you choose.