This product was not featured by Product Hunt yet.
It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).

Product Thumbnail

CleanDevMac

Find and delete the dev caches eating your Mac's disk

Mac
Open Source
Developer Tools
GitHub
Visit WebsiteSee on Product HuntGithub

Hunted byHoang Nguyen CongHoang Nguyen Cong

cdm is an open-source macOS CLI that finds developer caches, build artifacts, Electron junk and orphaned app data — and never deletes anything without showing you the itemized list first. Pure bash. Zero telemetry. MIT.

Top comment

Hey Product Hunt 👋

CleanDevMac (cdm) is a terminal cleaner for macOS developers. It finds the caches and build artifacts that quietly eat your disk — Xcode DerivedData and DeviceSupport, Go/npm/pnpm/yarn/Cargo/Gradle/Maven caches, Electron and browser caches, Docker layers, orphaned app data — shows you what they are and how big, and deletes only what you tick.

There's no install step. It runs straight from a one-liner, scans, and hands you the TUI. When it exits, nothing of it is left on your Mac. There's a dry-run flag too, if you'd rather look before anything is touched.

The things I cared most about:

• Nothing is deleted without an itemized confirmation. You see the plan and the sizes, then type y.

• ~/Documents, ~/Desktop, ~/Downloads, ~/Pictures, ~/.ssh and iCloud Drive are never touched. That guard sits below the rule engine, so a rule can't opt out of it.

• Orphaned app data and git-ignored files go to the Trash, so they're recoverable. Caches are deleted outright — they regenerate on the next build.

• Zero telemetry. The only network call cdm ever makes is fetching its own rule JSON.

• Rules live in JSON, not code. Edit them, or point --patterns at your own set.

Pure bash, no dependencies, MIT, free — no paid tier, nothing held back.

Curious what it finds on your machine, and what it misses. Happy to answer anything.

Comment highlights

finally something that doesn't nuke my homebrew cache without asking. the dry-run list is honestly the feature, caught a few gigabytes of old xcode derived data i didn't even know was there. solid work

finally something that actually shows me what it wants to nuke before touching anything, the dry-run by default is a really nice touch. ran it on my mac and found a shocking amount of junk from apps i forgot i even had.

this looks really handy for keeping my mac clean. one thing that would make it even better is a dry-run summary at the end showing exactly how much disk space would be reclaimed if you ran the actual cleanup, kind of like a teaser for what you'd save before committing to it.

love the no-surprises preview before deleting anything, that builds real trust. one thing i'd find super useful is a `--dry-run` flag that just estimates the total size reclaimable across all categories without listing every single file, makes it way quicker to decide if it's worth a full scan.

honestly this looks solid, the dry-run preview before deleting anything is exactly the right call. one thing that would make it even better is adding a flag to export the itemized list as json or csv so you can pipe it into other tools or keep a record before nukeing stuff

The dry-run by default approach is genuinely thoughtful - it treats trust as something you earn instead of assume, which is exactly the right call for a tool that could nuke a dev's machine.

About CleanDevMac on Product Hunt

Find and delete the dev caches eating your Mac's disk

CleanDevMac was submitted on Product Hunt and earned 13 upvotes and 7 comments, placing #62 on the daily leaderboard. cdm is an open-source macOS CLI that finds developer caches, build artifacts, Electron junk and orphaned app data — and never deletes anything without showing you the itemized list first. Pure bash. Zero telemetry. MIT.

CleanDevMac was featured in Mac (103.6k followers), Open Source (68.6k followers), Developer Tools (516.2k followers) and GitHub (41.3k followers) on Product Hunt. Together, these topics include over 124.7k products, making this a competitive space to launch in.

Who hunted CleanDevMac?

CleanDevMac was hunted by Hoang Nguyen Cong. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.

Want to see how CleanDevMac stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.