<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DiskSpace AI</title>
    <description>The latest articles on DEV Community by DiskSpace AI (@diskspaceai).</description>
    <link>https://dev.to/diskspaceai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4213087%2F67648f35-eeff-47fd-8674-18c2fa2e476b.png</url>
      <title>DEV Community: DiskSpace AI</title>
      <link>https://dev.to/diskspaceai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/diskspaceai"/>
    <language>en</language>
    <item>
      <title>The folders eating your Mac's disk (and which ones are safe to delete)</title>
      <dc:creator>DiskSpace AI</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:44:58 +0000</pubDate>
      <link>https://dev.to/diskspaceai/the-folders-eating-your-macs-disk-and-which-ones-are-safe-to-delete-j6</link>
      <guid>https://dev.to/diskspaceai/the-folders-eating-your-macs-disk-and-which-ones-are-safe-to-delete-j6</guid>
      <description>&lt;p&gt;A macOS update told me I needed 25 GB more. Finder said "System Data: 180 GB" and nothing else. If you write code on a Mac, most of that is probably yours: build output, package caches, simulators, containers and models. The good news is that a lot of it recreates itself.&lt;/p&gt;

&lt;p&gt;Here's what I found, where it lives, and the right way to clean each one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start here: what recreates itself
&lt;/h2&gt;

&lt;p&gt;These are copies. Delete them and the tool that made them makes them again when needed. Close the tool first.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;Clean it with&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Xcode build data&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/Library/Developer/Xcode/DerivedData&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Quit Xcode, empty the folder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Xcode iOS symbols&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/Library/Developer/Xcode/iOS DeviceSupport&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Empty the folder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;npm cache&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.npm/_cacache&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;npm cache clean --force&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pnpm store&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/Library/pnpm/store&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pnpm store prune&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Yarn cache&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/Library/Caches/Yarn&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;yarn cache clean&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pip cache&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/Library/Caches/pip&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pip cache purge&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;uv cache&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.cache/uv&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;uv cache clean&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Homebrew cache&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/Library/Caches/Homebrew&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;brew cleanup -s&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Playwright browsers&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/Library/Caches/ms-playwright&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;npx playwright uninstall --all&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Prefer the tool's own command over &lt;code&gt;rm -rf&lt;/code&gt;. &lt;code&gt;pnpm store prune&lt;/code&gt;, for example, only removes packages no project references; deleting the whole store makes every project download everything again. (I keep a longer list, with Gradle, Bun and more, here: &lt;a href="https://diskspaceai.com/guides/clear-developer-caches-mac" rel="noopener noreferrer"&gt;clear developer caches on a Mac&lt;/a&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Then: big things that need a decision
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Docker.&lt;/strong&gt; Docker Desktop keeps images, containers, volumes and build cache in one virtual disk, &lt;code&gt;Docker.raw&lt;/code&gt;. Finder may show its maximum size, not the real one. Check with:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker system df
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;code&gt;docker system prune&lt;/code&gt; removes stopped containers, dangling images and build cache. Add &lt;code&gt;-a&lt;/code&gt; to remove every image not in use. Leave volumes alone unless you know what's in them: that's where your databases live.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;iOS simulators.&lt;/strong&gt; Each one lives in &lt;code&gt;~/Library/Developer/CoreSimulator/Devices&lt;/code&gt;. This removes the ones for iOS versions you no longer have:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;xcrun simctl delete unavailable
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Whole runtimes (5–10 GB each) go in Xcode → Settings → Components.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI models.&lt;/strong&gt; Ollama (&lt;code&gt;ollama list&lt;/code&gt;, then &lt;code&gt;ollama rm &amp;lt;model&amp;gt;&lt;/code&gt;), LM Studio and Hugging Face (&lt;code&gt;huggingface-cli delete-cache&lt;/code&gt;) models are several GB each. They can be downloaded again, but only you know which ones you use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Xcode archives.&lt;/strong&gt; Old test builds can go. Keep the archives of versions you shipped: their dSYMs turn crash reports into readable code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Old projects
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;node_modules&lt;/code&gt; (often 200 MB to 1 GB each) and &lt;code&gt;.venv&lt;/code&gt; folders of projects you haven't touched in months can be deleted. &lt;code&gt;npm install&lt;/code&gt; or &lt;code&gt;uv sync&lt;/code&gt; brings them back from the lockfile.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "System Data" stays huge
&lt;/h2&gt;

&lt;p&gt;Part of it is purgeable: local Time Machine snapshots and iCloud files macOS can release by itself. Installers don't always wait for that. Restarting usually helps, or:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tmutil listlocalsnapshots /
sudo tmutil deletelocalsnapshots /
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;(Your backups on the external drive aren't touched.)&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd never delete
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Anything in &lt;code&gt;/System&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The Photos library file (delete photos from inside Photos).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;~/Library/Application Support&lt;/code&gt; folders of apps you still use: that's their data.&lt;/li&gt;
&lt;li&gt;Anything a "cleaner" selects without telling you what it is.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The tool I built for this
&lt;/h2&gt;

&lt;p&gt;Doing this by hand every few months got old, so I built &lt;strong&gt;DiskSpace AI&lt;/strong&gt;. It maps the disk by safety color, explains 60+ kinds of folders like the ones above, pre-selects only what recreates itself and cleans each with its own command. Your own files are kept 7 days with Undo. It also ships an MCP server, so Claude Code or Codex can analyze the disk and propose a cleanup.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu191ca110trh1igejojs.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu191ca110trh1igejojs.jpg" alt="DiskSpace AI showing the disk by safety color" width="800" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Analysis is free, and Pro is free for everyone during the beta: &lt;a href="https://diskspaceai.com" rel="noopener noreferrer"&gt;https://diskspaceai.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Which folder eats the most space on your Mac? I'm collecting the ones I don't know yet.&lt;/p&gt;

</description>
      <category>macos</category>
      <category>productivity</category>
      <category>docker</category>
      <category>xcode</category>
    </item>
  </channel>
</rss>
