Black FridayE-book $49 $9Get it →
← All blogs
Claude Code

How to Free Up Disk Space on Mac and Windows With Claude

Storage full? A free cleaner and a few Claude prompts freed 57 GB on my Mac mini and 300 GB on my MacBook Pro.

My computer was almost out of storage. I didn't buy a cleaning app. I gave Claude a few prompts and it cleaned the whole thing on its own. On my MacBook Pro it freed around 300 GB, and most of it wasn't even my files.

Rather watch it?Claude Made My Old Laptop Feel Brand New!Watch on YouTube →

I show it on a Mac in the video. Mole, the free tool I use, also has a Windows version with the same commands, so the prompts below work on a PC too. I haven't tested it on a PC myself.

For the video, I ran it fresh on my Mac mini, a computer that had never been cleaned. Free space went from 56.9 GB to 114.5 GB. Nothing got deleted until I said yes.

What's filling up your disk space

Most of it is stuff your apps and tools left behind, not your files:

  • App caches. Browsers, chat apps and design tools keep copies of things so they load faster.
  • Logs and temp files. Notes your apps write about themselves. They pile up for years.
  • Package caches. npm, pip and Homebrew keep every download "just in case".
  • Old installers. .dmg, .exe and .zip files for apps you already installed.
  • Developer leftovers. Old git worktrees, Android emulators, SDKs, and folders from AI tools you tried once.

A lot of this hides in folders you never open, which is why it's hard to find on your own.

Want to see where your space went first? On a Mac, open System Settings > General > Storage. On Windows 11, open Settings > System > Storage. Both show you the big categories.

Why System Data on Mac (or your C drive) is so big

On a Mac, the storage screen often shows a huge System Data bar. That's where macOS counts things that fit no other category: caches, logs, hidden app folders and local Time Machine snapshots.

On Windows, the same kind of junk sits in your user folder and in AppData, which is hidden by default. That's why your C drive fills up even when you haven't saved much.

That's the stuff this method goes after. Mole clears the caches and logs. Claude finds the big hidden folders Mole doesn't know about.

What you need

  • Claude Code. It comes with a paid Claude plan.
  • Mole. A free, open-source cleaner for Mac and Windows. Claude installs it for you.
  • A Mac or a Windows PC.

Step 1:Let Claude install Mole (a free cleaner)

You can install Mole yourself from the Terminal. Or you can paste this into Claude Code and let it do the work:

Prompt
Here's Mole, a free open source cleaner: https://github.com/tw93/Mole
Use only Mole for this. Don't do anything else.

1. Install it the official way for my computer (Homebrew on Mac, the PowerShell install script from the Mole repo on Windows).
2. Run mo clean --dry-run. Don't delete anything yet.
3. Tell me how much space we can get back and what the biggest items are.

The same prompt works on both. Claude can tell which computer you're on and picks the right install.

Only get Mole from Homebrew (Mac), Scoop (Windows), github.com/tw93/Mole or mole.fit. Lookalike sites are not Mole.

The dry run is a preview. Nothing gets deleted. On my Mac mini it said Mole could free up to 9.3 GB: around 4 GB of caches, npm download caches, and a pile of logs.

Step 2:Clear the cache and logs on Mac or Windows

Read the preview. If it looks right, tell Claude to run it:

Prompt
Looks good. Run mo clean for real, then show my free space before and after.

One warning. mo clean deletes for good. It does not go to the Trash, and on a Mac it also empties your Trash. So check the Trash and the preview first.

Mole removed 8.31 GB. The Mac mini went from 57 GB free to 66.25 GB free.

Got old coding projects? Also ask Claude to run mo purge --dry-run. It finds old build folders like node_modules.

Step 3:Let Claude find what Mole missed

This step freed the most space: 48 GB. I gave Claude a deep audit prompt. It measures your disk, finds every big folder, and makes one table of everything over 500 MB that Mole wouldn't clean. On a Mac it looks through ~/Library. On Windows it looks through AppData.

The prompt is in the free clean laptop cheatsheet, along with every Mole command on one page.

Here's what Claude came back with on my Mac mini:

  • Disk: 245 GB total, 145 GB used, 66 GB free.
  • A chart of where the space was going.
  • A list of everything over 500 MB that Mole didn't touch: worktrees from T3 Code and another app, Playwright browsers I don't use anymore, and other leftovers.

Each item was marked Safe, Check first or Keep. You're not guessing what a folder is. Claude tells you in plain English and says how sure it is.

Step 4:Read the list, then approve

Please read the whole list before you approve anything. If there's something you want to keep, ask Claude to take it off the list.

I went through every item first. All of them were things I didn't need, so I told Claude to remove them all at once. On a computer you care about, I'd go one item at a time. The cheatsheet prompt is set up that way.

The result: 57.6 GB of disk space freed

Free space
Before Mole 56.9 GB
After Mole 66.2 GB
After Claude's audit 114.5 GB

That's 57.6 GB freed on a Mac mini. On my MacBook Pro, a 2 TB machine full of years of mess, it was around 300 GB.

Safety rules

  • Back up anything important first.
  • Always run the preview before the real clean.
  • Approve one big item at a time if you're not sure what something is.
  • If nobody can say what a folder is, leave it.
  • Never let any tool touch your documents, photos or projects.

FAQ

How do I free up disk space on my computer? Clear the junk your apps leave behind first: caches, logs, temp files and old installers. A free cleaner like Mole does that with a preview first. Then look for big hidden folders, like old developer tools and leftover app data. Claude Code can find those and explain each one before you delete it.

How do I free up space on my PC or C drive? The same way. Mole has a Windows version, and Claude can install it with the PowerShell script from the Mole repo. Then the Claude audit looks through your user folder and AppData for big leftovers, which is usually what fills the C drive.

Is it safe to clear the cache? Yes, for normal app caches. Apps rebuild them when they need them, so things may load a little slower at first. Always run a preview first and don't delete folders nobody can explain.

Why does my Mac say "System Data" is so big? System Data is where macOS counts things that fit no other category: caches, logs, hidden app folders and local Time Machine snapshots. Clearing caches and old app folders shrinks it. Some of it is macOS itself and stays.

Why does my Mac say there's not enough disk space when there is? Usually it's purgeable space or local Time Machine snapshots that macOS hasn't cleared yet. Restart, then check System Data again.

Does freeing up disk space make my computer faster? A little, if the disk was almost full. A full disk slows down updates and apps. It won't fix an old processor.

Doesn't my computer already have a disk cleanup? Windows has Disk Cleanup and Storage Sense, and Mac has storage recommendations in System Settings > General > Storage. They help with temp files, big files and the Trash, but they don't know about developer leftovers or folders from tools you stopped using. That's what Claude covers here.

What is a free alternative to CleanMyMac or CCleaner? Mole. It's free and open source on GitHub, it works on Mac and Windows, and it previews everything before it deletes it.

Will Claude delete my files? Not if you follow the steps. The prompts tell Claude to never touch your documents, photos or anything you made, and to wait for your yes before deleting anything.

Keep going

Old TV slow too? Claude can remove the ads and bloatware from an Android TV.

Watch the full video on YouTube, and get every prompt from it in the free clean laptop cheatsheet.

Slow laptop? Chapter 12 of my e-book has the fix.
Get the book →
Staffed

Want more projects like this?

Join Staffed, my free community. My projects are there as step-by-step courses.

Join for free →