# How AI Helped Me Free Up 24 GB on My Mac

AI found an 11 GB hidden npm cache and helped free up 24 GB on my Mac in 15 minutes. The key is to start with a Read-Only audit and approve every deletion yourself.

Author: Maxim Tolmachev
Published: 2026-08-25
Language: en
Canonical: https://maximtolmachev.com/blog/how-ai-helped-me-free-up-24-gb-on-my-mac/
Original source: https://t.me/mtolm/96

![How AI Helped Me Free Up 24 GB on My Mac](/blog-images/tg-96.jpg)

How I accidentally found 11 GB of forgotten cache on my Mac and freed up 24 GB in 15 minutes with AI

If you have a MacBook with 256 or 512 GB of storage, you probably know the problem: space disappears before your eyes. Install a couple of apps, work with media, test some AI tools, or open a few projects—and the disk is already in the red.

In situations like this, I used to open CleanMyMac, look at folder-size charts, and manually go through large files. It takes a while, and more importantly, standard cleaners often miss hidden system leftovers and developer caches.

A few days ago, I had only 1.4 GB of free space left, and the laptop started struggling. Instead of cleaning everything manually, I decided to bring in AI and ran the task in Claude / Codex.

Here’s what it found and how the safe cleanup process works:

1️⃣ An 11 GB hidden npm cache
Honestly, I had no idea how much had piled up there. If you’ve ever run frontend projects or installed packages through Node, this cache can sit there as dead weight for years. AI found it in a couple of seconds.

2️⃣ Cold archives in Google Drive (Stream Mode)
We moved large dumps, old backups, and rarely used archives to Google Drive. In Streaming mode, the files are visible right in Finder but don’t physically take up space on the local SSD. AI uploaded the files to the cloud, verified their MD5 checksums, and deleted the local copies only after a 100% successful check.

3️⃣ The APFS Snapshots trap in macOS
A classic: you delete 15 GB of files, but the system shows no extra free space. Time Machine often creates local disk snapshots that keep deleted blocks around. AI found them and carefully freed up the space.

⚠️ Safety disclaimer:
Any model can make a mistake or glitch, so you do all of this at your own risk. You should never blindly trust AI to delete files. The main rule: start with a Read-Only audit, and only delete anything manually or with your explicit confirmation.

🛠 Ready-to-use prompt and step-by-step guide:
To keep the post from getting too cluttered, I put the universal prompt and instructions for Claude Code / Cursor / Codex into a public document.
