A native macOS cleaner written from scratch in Swift and SwiftUI โ system junk, large & old files, uninstaller, privacy cleanup, optimisation, startup items and scheduled smart tasks. No third-party dependencies, no accounts, no telemetry.
xattr -dr com.apple.quarantine /Applications/MacSweep.app after copying it.
Items that need administrator rights are collected into a single batched prompt.
~30 catalogue rules: user caches, logs, Trash, Xcode/DerivedData, npm/yarn/pip caches, Homebrew, iOS backups, old installers.
Files above a threshold, older than N days, plus duplicates detected by SHA-256.
Lists every .app, reads its bundle id, finds leftover containers and removes both.
Clears cookies, cache and history for Safari, Chrome, Firefox, Edge, Brave and Arc; audits TCC grants.
DNS flush, Spotlight re-index, Dock reset, memory purge, QuickLook rebuild, SMC reset on Intel.
Login items and background task management entries, read from sfltool dumpbtm.
Schedules a launchd agent that runs a safe auto-clean on an interval.
Every cleaning run is logged locally so you can see exactly what was removed.
SafetyRules.isProtected is a hard guardrail applied before every delete.
The system tree, other users' home folders and your own documents, desktop, pictures, movies, music and
public folders are never touched โ nor are application bundles, preferences, mail or iOS backups.
Anything needing admin rights is collected into a single batched prompt instead of one prompt per file.
The same binary runs head-less โ this is what the scheduler uses:
MacSweep --scan [--json] ยท --clean [--yes] ยท --auto-clean ยท --snapshot <png> <tab> ยท --version




