<?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: Hard Work</title>
    <description>The latest articles on DEV Community by Hard Work (@fastlog).</description>
    <link>https://dev.to/fastlog</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%2F4025360%2Fe2ed8dd0-77b5-4ff4-bec8-8a51ac4acdab.jpg</url>
      <title>DEV Community: Hard Work</title>
      <link>https://dev.to/fastlog</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fastlog"/>
    <language>en</language>
    <item>
      <title>Best Disk Cleaners on the Mac App Store (2026): Sandboxed, No Root &amp; One-Time Purchase Options</title>
      <dc:creator>Hard Work</dc:creator>
      <pubDate>Thu, 26 Nov 2026 00:19:53 +0000</pubDate>
      <link>https://dev.to/fastlog/best-disk-cleaners-on-the-mac-app-store-2026-sandboxed-no-root-one-time-purchase-options-m7d</link>
      <guid>https://dev.to/fastlog/best-disk-cleaners-on-the-mac-app-store-2026-sandboxed-no-root-one-time-purchase-options-m7d</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; This comparison was written by the developer of &lt;strong&gt;CleanBit&lt;/strong&gt; with AI assistance. Every app listed below is distributed through Apple's Mac App Store (no unverified external installers), and all prices, versions, and feature notes were verified from public US Mac App Store listings on &lt;strong&gt;2026-11-25&lt;/strong&gt;. Regional App Store pricing may vary. Originally published on &lt;a href="https://getcleanbit.app/guides/best-disk-cleaners-mac-app-store/" rel="noopener noreferrer"&gt;getcleanbit.app&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Which Mac App Store disk cleaner should you pick?&lt;/strong&gt; If you want a sandboxed cleaner that explains what every item is before deleting it, sends review items to the Trash, handles both everyday clutter and developer/AI tool caches, and offers a one-time lifetime purchase, start with &lt;strong&gt;CleanBit&lt;/strong&gt; (&lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Download on the Mac App Store&lt;/a&gt; — free scan and first 2 cleans free). If you only want a visual folder map to hunt down big files manually for $9.99 once, pick &lt;strong&gt;DaisyDisk&lt;/strong&gt;. If you want a broad all-in-one suite billed through your Apple Account, look at &lt;strong&gt;CleanMyMac&lt;/strong&gt; or &lt;strong&gt;Cleaner One Pro&lt;/strong&gt;—and if you only clean Xcode caches, &lt;strong&gt;DevCleaner for Xcode&lt;/strong&gt; is free and open source.&lt;/p&gt;

&lt;p&gt;Every app on this list runs inside Apple's &lt;strong&gt;App Sandbox&lt;/strong&gt;—meaning no root password prompts and no persistent privileged helper daemons installed outside the App Store. That makes them a practical fit for everyday Mac users who want lower risk, and for developers on company-managed Macs where unsigned external &lt;code&gt;.dmg&lt;/code&gt; tools are restricted.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Looking for CLI tools (&lt;code&gt;npkill&lt;/code&gt;, &lt;code&gt;kondo&lt;/code&gt;, &lt;code&gt;Mole&lt;/code&gt;, &lt;code&gt;docker system prune&lt;/code&gt;, &lt;code&gt;xcrun simctl&lt;/code&gt;) too?&lt;/strong&gt; See our new companion guide comparing the &lt;a href="https://getcleanbit.app/guides/best-developer-disk-cleaners-mac/" rel="noopener noreferrer"&gt;best CLI and GUI developer disk cleaners for Mac (2026)&lt;/a&gt;—or run our zero-install, read-only &lt;a href="https://getcleanbit.app/tools/disk-check/" rel="noopener noreferrer"&gt;Mac Disk Check audit script generator&lt;/a&gt; first (&lt;code&gt;du&lt;/code&gt; and &lt;code&gt;find&lt;/code&gt; only, zero deletions).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Quick Recommendations by Use Case
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Everyday Mac users &amp;amp; developers who want clear explanations + one-time purchase option:&lt;/strong&gt; &lt;strong&gt;CleanBit&lt;/strong&gt; — Three risk tiers (&lt;em&gt;Recommended&lt;/em&gt;, &lt;em&gt;Review&lt;/em&gt;, &lt;em&gt;Info Only&lt;/em&gt;), Trash recovery for review items, everyday cleanup (installers, browser/app caches, large files, duplicates, uninstaller) plus developer &amp;amp; AI coding tool support.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visual storage explorers who prefer manual drag-and-drop:&lt;/strong&gt; &lt;strong&gt;DaisyDisk&lt;/strong&gt; ($9.99 one-time) or &lt;strong&gt;Disk Space Analyzer Pro&lt;/strong&gt; ($13.99 one-time) — Fast sunburst maps showing where gigabytes live, without automated cache rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Users who want a mainstream all-in-one suite on Apple ID billing:&lt;/strong&gt; &lt;strong&gt;CleanMyMac (Mac App Store edition)&lt;/strong&gt; or &lt;strong&gt;Cleaner One Pro&lt;/strong&gt; — Broad everyday feature sets with recurring subscription options (CleanMyMac also lists a one-time option for the current major version).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Minimal budget checklist on older macOS (10.13+):&lt;/strong&gt; &lt;strong&gt;Disk Doctor: System Cleaner&lt;/strong&gt; ($2.99 one-time) — Simple category checkboxes for basic caches, logs, and downloads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iOS/macOS developers who only clean Xcode:&lt;/strong&gt; &lt;strong&gt;DevCleaner for Xcode&lt;/strong&gt; (Free, open source) — Purpose-built for &lt;code&gt;~/Library/Developer&lt;/code&gt; caches and nothing else.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Side-by-Side Comparison (Mac App Store Editions — Verified 2026-11-25)
&lt;/h2&gt;

&lt;p&gt;All information below reflects the &lt;strong&gt;Mac App Store&lt;/strong&gt; editions verified on &lt;strong&gt;2026-11-25&lt;/strong&gt; (some vendors also sell separate direct-download versions outside the App Store with different permissions and pricing).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;App (Mac App Store)&lt;/th&gt;
&lt;th&gt;Pricing Model (Verified 2026-11-25)&lt;/th&gt;
&lt;th&gt;Sandboxed / No Root Helper&lt;/th&gt;
&lt;th&gt;Pre-Delete Impact &amp;amp; Trash Recovery&lt;/th&gt;
&lt;th&gt;Dev &amp;amp; AI Coding Caches&lt;/th&gt;
&lt;th&gt;Languages &amp;amp; Min macOS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;CleanBit&lt;/strong&gt; (v1.0.1)&lt;/td&gt;
&lt;td&gt;Free scan + 2 free cleans; &lt;strong&gt;$4.99/mo&lt;/strong&gt;, &lt;strong&gt;$19.99/yr&lt;/strong&gt;, or &lt;strong&gt;$29.99 lifetime&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Yes (MAS-only; optional FDA)&lt;/td&gt;
&lt;td&gt;Per-item impact notes; Review, artifacts, AI sessions &amp;amp; uninstalled apps always move to Trash (Recommended caches Trash-optional)&lt;/td&gt;
&lt;td&gt;Xcode, 12+ pkg managers, Git-safe &lt;code&gt;node_modules&lt;/code&gt;/&lt;code&gt;target&lt;/code&gt;/&lt;code&gt;.build&lt;/code&gt;/&lt;code&gt;.venv&lt;/code&gt;, Claude Code &amp;amp; Codex sessions; local models Info Only&lt;/td&gt;
&lt;td&gt;9 languages · macOS 15+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;CleanMyMac&lt;/strong&gt; (v5.7.4)&lt;/td&gt;
&lt;td&gt;Free download + trial; subscription IAPs &amp;amp; current-major-version one-time option (see MAS listing)&lt;/td&gt;
&lt;td&gt;Yes (MAS edition is sandboxed; direct download uses helper)&lt;/td&gt;
&lt;td&gt;Guided category cleanup; confirmation dialogs; permanent deletion for most junk categories&lt;/td&gt;
&lt;td&gt;Basic Xcode/dev junk; no dedicated AI coding agent session or Git-aware artifact rules&lt;/td&gt;
&lt;td&gt;12 languages · macOS 11+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;DaisyDisk&lt;/strong&gt; (v4.34.3)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$9.99 one-time&lt;/strong&gt; (no subscription)&lt;/td&gt;
&lt;td&gt;Yes (MAS edition omits admin scan &amp;amp; cloud scan)&lt;/td&gt;
&lt;td&gt;Visual sunburst map; collector bar requires explicit confirmation before deleting&lt;/td&gt;
&lt;td&gt;Shows folders by size only; no built-in cache/dev safety classification&lt;/td&gt;
&lt;td&gt;13+ languages · macOS 12+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Cleaner One Pro&lt;/strong&gt; (v6.6.9)&lt;/td&gt;
&lt;td&gt;Free download; subscription IAPs (typically from ~$19.99/yr in US MAS)&lt;/td&gt;
&lt;td&gt;Yes (MAS sandboxed)&lt;/td&gt;
&lt;td&gt;Category junk scanner, duplicate photos &amp;amp; app manager&lt;/td&gt;
&lt;td&gt;General logs/caches; no dedicated AI tool or Git-aware build artifact rules&lt;/td&gt;
&lt;td&gt;17+ languages · macOS 10.15+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Disk Space Analyzer Pro&lt;/strong&gt; (v6.0.3)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$13.99 one-time&lt;/strong&gt; (free Inspector version also listed)&lt;/td&gt;
&lt;td&gt;Yes (MAS sandboxed)&lt;/td&gt;
&lt;td&gt;Visual sunburst chart &amp;amp; large file list; manual removal to Trash or permanent delete&lt;/td&gt;
&lt;td&gt;Shows folders by size only; no built-in dev/AI cache rules&lt;/td&gt;
&lt;td&gt;8 languages · macOS 11+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Disk Doctor&lt;/strong&gt; (v4.6)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$2.99 one-time&lt;/strong&gt; (Pro edition $5.99)&lt;/td&gt;
&lt;td&gt;Yes (MAS sandboxed)&lt;/td&gt;
&lt;td&gt;Simple category checklist (caches, logs, downloads, mail downloads, large files)&lt;/td&gt;
&lt;td&gt;Basic "Developer Files" category only; no AI coding tools&lt;/td&gt;
&lt;td&gt;English only · macOS 10.13+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;DevCleaner for Xcode&lt;/strong&gt; (v2.8.0)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Free&lt;/strong&gt; (open source; optional tip jar)&lt;/td&gt;
&lt;td&gt;Yes (MAS sandboxed)&lt;/td&gt;
&lt;td&gt;Lists &lt;code&gt;DerivedData&lt;/code&gt;, &lt;code&gt;DeviceSupport&lt;/code&gt;, archives with confirmation&lt;/td&gt;
&lt;td&gt;Xcode (&lt;code&gt;~/Library/Developer&lt;/code&gt;) only&lt;/td&gt;
&lt;td&gt;English only · macOS 14+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  1. CleanBit: Disk Space Cleaner
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Everyday Mac users who want to understand every file before removing it, company-managed Macs that require Mac App Store software, and developers or AI coding users who want one tool that covers both routine clutter and multi-gigabyte build/AI caches.&lt;/p&gt;

&lt;p&gt;CleanBit is built natively in SwiftUI for macOS 15+ and distributed exclusively on the Mac App Store inside Apple's App Sandbox. Instead of presenting one giant gigabyte total and a blind "Clean" button, CleanBit organizes findings into three explicit safety tiers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Recommended (rebuilds automatically):&lt;/strong&gt; User app caches (automatically locking caches of currently running apps and skipping Apple subsystem caches), browser caches (Safari, Chrome, Edge, Brave, Arc, Vivaldi, Firefox—without touching cookies, history, or passwords), Xcode &lt;code&gt;DerivedData&lt;/code&gt;, old &lt;code&gt;iOS DeviceSupport&lt;/code&gt; versions, SwiftUI previews, shut-down simulator caches, 12+ package manager caches (&lt;code&gt;npm&lt;/code&gt;, Yarn, Bun, &lt;code&gt;pip&lt;/code&gt;, &lt;code&gt;uv&lt;/code&gt;, SwiftPM, CocoaPods, Homebrew, Go, Cargo, Gradle), and old Claude Code binaries. Deleted permanently by default so space returns immediately, or you can switch Recommended items to move to the Trash in Settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review (never pre-selected; always moved to Trash):&lt;/strong&gt; Old installers (&lt;code&gt;.dmg&lt;/code&gt;, &lt;code&gt;.pkg&lt;/code&gt;, &lt;code&gt;.iso&lt;/code&gt;, &lt;code&gt;.xip&lt;/code&gt;) in Downloads, uninstalled app leftovers, project build artifacts (&lt;code&gt;node_modules&lt;/code&gt;, Rust &lt;code&gt;target/&lt;/code&gt;, Swift &lt;code&gt;.build/&lt;/code&gt;, Python &lt;code&gt;.venv/&lt;/code&gt;, &lt;code&gt;Pods&lt;/code&gt;—showing each project's last-modified date and skipping Git-tracked files, including &lt;code&gt;~/.claude/worktrees&lt;/code&gt; and &lt;code&gt;~/.codex/worktrees&lt;/code&gt;), old Claude Code and Codex &lt;code&gt;.jsonl&lt;/code&gt; sessions filtered by date, and uninstalled apps. Everything in this tier moves to the Trash so you can put it back.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Info Only (shown for awareness; never deletable):&lt;/strong&gt; Local AI models (Hugging Face, Ollama, LM Studio, PyTorch), hard-linked &lt;code&gt;pnpm&lt;/code&gt; store, and Docker Desktop virtual disk images—so you can see where 20–80 GB went without risking accidental removal.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Beyond Smart Scan (which supports per-group cleaning in v1.0.1), CleanBit includes a drill-down &lt;strong&gt;Space Analysis&lt;/strong&gt; map, a &lt;strong&gt;Large Files&lt;/strong&gt; finder (filterable by size and last-opened date), a byte-identical &lt;strong&gt;Duplicate Files&lt;/strong&gt; finder (always keeping at least one copy), an &lt;strong&gt;App Uninstaller&lt;/strong&gt;, an optional menu bar utility with low-space alerts, and a &lt;strong&gt;Dry Run Mode&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h9sim52k56b5dx6uc0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h9sim52k56b5dx6uc0.webp" alt="CleanBit Smart Scan showing Recommended, Review, and Info Only tiers with plain-language impact notes" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before anything is removed, CleanBit displays a confirmation sheet that explicitly separates how much goes to the &lt;strong&gt;Trash&lt;/strong&gt; versus what is &lt;strong&gt;permanently deleted&lt;/strong&gt;, and re-verifies each path, file identity, and running-app lock immediately before deletion. File names, paths, and file contents never leave your Mac (CleanBit uses Firebase Analytics only for anonymous usage counts and MB-rounded totals per built-in rule ID).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7p63qdkr37jqj8z6qz6u.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7p63qdkr37jqj8z6qz6u.webp" alt="CleanBit confirmation dialog splitting Trash items from permanent deletions before cleanup" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pricing (Verified 2026-11-25):&lt;/strong&gt; Unlimited scanning and space analysis for free, plus your &lt;strong&gt;first 2 cleans free&lt;/strong&gt;. Unlock unlimited cleaning via &lt;strong&gt;$4.99/month&lt;/strong&gt;, &lt;strong&gt;$19.99/year&lt;/strong&gt;, or a &lt;strong&gt;$29.99 one-time lifetime purchase&lt;/strong&gt; through the &lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Mac App Store&lt;/a&gt; (9 languages supported).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who CleanBit is NOT for (honest boundaries):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Macs running macOS 14 Sonoma or earlier:&lt;/strong&gt; CleanBit requires &lt;strong&gt;macOS 15 (Sequoia) or later&lt;/strong&gt;. If you are on an older macOS release, look at DaisyDisk (macOS 12+), Disk Space Analyzer Pro (macOS 11+), or Disk Doctor (macOS 10.13+).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Users trying to purge APFS local snapshots or system-level &lt;code&gt;/Library/Caches&lt;/code&gt;:&lt;/strong&gt; CleanBit intentionally stays inside Apple's App Sandbox without root access, so it cannot touch APFS Time Machine local snapshots, &lt;code&gt;/System/Library/Caches&lt;/code&gt;, &lt;code&gt;/private/tmp&lt;/code&gt;, or iCloud Drive synced files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Users looking for security/threat scanning or cloud-drive cleanup:&lt;/strong&gt; CleanBit is strictly a local disk space cleaner—it does not include security scanning, RAM tools, or "Mac boost" modules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor-specific cache automation:&lt;/strong&gt; CleanBit does not currently include a dedicated Cursor cleaner rule (see our manual &lt;a href="https://getcleanbit.app/guides/claude-code-cursor-codex-disk-space-mac/" rel="noopener noreferrer"&gt;Claude Code, Cursor, and Codex storage guide&lt;/a&gt; for safe Cursor steps).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. CleanMyMac by MacPaw (Mac App Store Edition)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Everyday Mac users who want a long-standing, polished all-in-one maintenance app billed through their Apple Account rather than a separate vendor account.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Strengths:&lt;/strong&gt; CleanMyMac (v5.7.4 on the Mac App Store, macOS 11+, 12 languages) offers a well-known interface combining cache/log cleanup, large-file visualization, photo clutter tools, and security checks. Downloading from the Mac App Store keeps billing inside Apple ID settings and avoids external &lt;code&gt;.dmg&lt;/code&gt; installers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trade-offs &amp;amp; Limitations:&lt;/strong&gt; CleanMyMac is in a higher price bracket than focused disk utilities, with subscription plans and a one-time option that historically covers only the current major version (verify exact current tiers in the Mac App Store listing). Because Apple enforces sandboxing on Mac App Store apps, the App Store edition also omits certain deep system-level privileges available only in MacPaw's direct-download version. For developers, it is not specialized in AI coding agent sessions or Git-aware &lt;code&gt;node_modules&lt;/code&gt; / worktree cleanup.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. DaisyDisk (Mac App Store Edition)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Users who already know their way around their files and want the fastest, cleanest visual map of disk usage for a low one-time price.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Strengths:&lt;/strong&gt; At &lt;strong&gt;$9.99 one-time&lt;/strong&gt; (v4.34.3, macOS 12+, 13+ languages), DaisyDisk is one of the best-designed Mac utilities ever made. Its interactive sunburst chart makes it effortless to spot forgotten 40 GB video folders, raw media exports, or bloated backup archives, drop them into the collector bar, and delete them after review.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trade-offs &amp;amp; Limitations:&lt;/strong&gt; DaisyDisk is a &lt;strong&gt;disk visualizer&lt;/strong&gt;, not a rule-based cleaner. It shows you &lt;em&gt;how big&lt;/em&gt; a folder inside &lt;code&gt;~/Library&lt;/code&gt; is, but it does not explain whether deleting a specific cache folder is safe, lock running apps' caches, or distinguish Git-tracked files inside project folders. Note also that the Mac App Store edition is sandboxed and does not include the "Scan as Administrator" or cloud-storage scanning modes from DaisyDisk's standalone website version.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Cleaner One Pro (Trend Micro)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Mainstream Mac users—especially on older macOS versions—who want an all-in-one utility from a recognizable security company covering junk cleanup, similar photo detection, and app management.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Strengths:&lt;/strong&gt; Cleaner One Pro (v6.6.9, macOS 10.15+, 17+ languages) supports a wide range of languages and older macOS releases. It bundles general junk scanning, duplicate/similar photo cleanup, an app manager, and a menu bar status view in a single Mac App Store download.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trade-offs &amp;amp; Limitations:&lt;/strong&gt; Core capabilities such as duplicate cleanup and full app management sit behind recurring subscription In-App Purchases (typically starting around $19.99/year in the US App Store, with no lifetime one-time purchase tier). Like most general suites, it emphasizes quick summaries over item-by-item impact explanations, and it does not target developer build artifacts or AI coding tool directories.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Disk Space Analyzer Pro (Nektony)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Users who want a visual sunburst disk map plus a straightforward list of the largest files and folders on a Mac, with a one-time Mac App Store purchase.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Strengths:&lt;/strong&gt; Priced at &lt;strong&gt;$13.99 one-time&lt;/strong&gt; (v6.0.3, macOS 11+, 8 languages; a free &lt;em&gt;Inspector&lt;/em&gt; companion is also available), Nektony's Disk Space Analyzer Pro scans quickly and gives you a clear sunburst view alongside a ranked list of your biggest folders and files so you can clean them up manually.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trade-offs &amp;amp; Limitations:&lt;/strong&gt; Like DaisyDisk, it is primarily a visual storage inspector rather than a guided cache or developer cleaner. You are responsible for deciding whether a subfolder inside &lt;code&gt;~/Library&lt;/code&gt; or a project workspace is safe to remove.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Disk Doctor: System Cleaner (FIPLAB)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Budget-conscious everyday users on older Macs (macOS 10.13+) who want a minimal, low-cost checklist for routine folders.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Strengths:&lt;/strong&gt; At &lt;strong&gt;$2.99 one-time&lt;/strong&gt; (v4.6, macOS 10.13+; FIPLAB also offers a Pro version at $5.99), Disk Doctor is inexpensive and uncomplicated. It scans standard locations such as Application Caches, Application Logs, Browser Data, Mail Downloads, Downloads, Large Files (&amp;gt;100 MB), and basic Developer Files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trade-offs &amp;amp; Limitations:&lt;/strong&gt; English-only interface, minimal customization, and no visual space map, duplicate file finder, app uninstaller, Git-aware project artifact scanner, or AI tool cleanup rules.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. DevCleaner for Xcode
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; iOS, macOS, and Swift developers whose main storage problem is Xcode (&lt;code&gt;~/Library/Developer&lt;/code&gt;) and who want a free, inspectable Mac App Store utility.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Strengths:&lt;/strong&gt; &lt;strong&gt;Completely free&lt;/strong&gt; and open source (v2.8.0, macOS 14+, optional tip jar on the Mac App Store). DevCleaner focuses exclusively on Xcode caches—&lt;code&gt;DerivedData&lt;/code&gt;, old &lt;code&gt;iOS DeviceSupport&lt;/code&gt; symbols, archives, and logs—without bloat or upsells.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trade-offs &amp;amp; Limitations:&lt;/strong&gt; It cleans &lt;strong&gt;only&lt;/strong&gt; Xcode folders. It will not find old &lt;code&gt;.dmg&lt;/code&gt; installers in Downloads, browser caches, app leftovers, duplicate files, &lt;code&gt;node_modules&lt;/code&gt; / Rust &lt;code&gt;target/&lt;/code&gt; folders, or Claude Code / Codex caches.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Sandboxed Mac App Store Cleaners Can (and Cannot) Clean
&lt;/h2&gt;

&lt;p&gt;Because Apple requires every Mac App Store app to run in the &lt;strong&gt;App Sandbox&lt;/strong&gt;, all seven tools above share an important architectural boundary:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What they CAN safely inspect and clean:&lt;/strong&gt; Files inside your user home folder (&lt;code&gt;~&lt;/code&gt;) that you grant access to—including &lt;code&gt;~/Downloads&lt;/code&gt;, &lt;code&gt;~/Library/Caches&lt;/code&gt; and browser caches (&lt;a href="https://getcleanbit.app/guides/is-it-safe-to-delete-library-caches-mac/" rel="noopener noreferrer"&gt;is &lt;code&gt;~/Library/Caches&lt;/code&gt; safe to delete?&lt;/a&gt;), &lt;code&gt;~/Library/Logs&lt;/code&gt;, Xcode (&lt;a href="https://getcleanbit.app/guides/is-xcode-deriveddata-safe-to-delete/" rel="noopener noreferrer"&gt;DerivedData guide&lt;/a&gt;), package manager caches, project build folders like &lt;a href="https://getcleanbit.app/guides/how-to-find-and-delete-old-node-modules-on-mac/" rel="noopener noreferrer"&gt;&lt;code&gt;node_modules&lt;/code&gt;&lt;/a&gt; and &lt;a href="https://getcleanbit.app/guides/claude-code-worktrees-disk-space-mac/" rel="noopener noreferrer"&gt;Claude Code git worktrees&lt;/a&gt;, large personal files, duplicates, and app leftovers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What they CANNOT touch:&lt;/strong&gt; Protected macOS system directories (&lt;code&gt;/System/Library/Caches&lt;/code&gt;, &lt;code&gt;/Library/Caches&lt;/code&gt;), &lt;code&gt;/private/tmp&lt;/code&gt;, and &lt;strong&gt;APFS local snapshots&lt;/strong&gt; (often the real culprit behind an oversized "System Data" bar). Those areas require root privileges or macOS's own &lt;code&gt;tmutil&lt;/code&gt; management.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Want to inspect where your storage actually went before installing &lt;em&gt;any&lt;/em&gt; app? Try our zero-install &lt;a href="https://getcleanbit.app/tools/disk-check/" rel="noopener noreferrer"&gt;Mac Disk Check audit script generator&lt;/a&gt;, or compare open-source CLI and GUI tools in our &lt;a href="https://getcleanbit.app/guides/best-developer-disk-cleaners-mac/" rel="noopener noreferrer"&gt;developer disk cleaners guide for Mac (2026)&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://getcleanbit.app/guides/best-disk-cleaners-mac-app-store/" rel="noopener noreferrer"&gt;getcleanbit.app/guides/best-disk-cleaners-mac-app-store/&lt;/a&gt;. Try CleanBit free (unlimited scan + first 2 cleans free) on the &lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Mac App Store&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>macos</category>
      <category>productivity</category>
      <category>apple</category>
      <category>programming</category>
    </item>
    <item>
      <title>Claude Code Worktrees Filling Your Disk? How to Find and Remove Leftover Git Worktrees</title>
      <dc:creator>Hard Work</dc:creator>
      <pubDate>Wed, 25 Nov 2026 00:18:03 +0000</pubDate>
      <link>https://dev.to/fastlog/claude-code-worktrees-filling-your-disk-how-to-find-and-remove-leftover-git-worktrees-454d</link>
      <guid>https://dev.to/fastlog/claude-code-worktrees-filling-your-disk-how-to-find-and-remove-leftover-git-worktrees-454d</guid>
      <description>&lt;p&gt;&lt;em&gt;Note: Originally published at &lt;a href="https://getcleanbit.app/guides/claude-code-worktrees-disk-space-mac/" rel="noopener noreferrer"&gt;getcleanbit.app&lt;/a&gt;. Written by the CleanBit developer with AI assistance. All measurements were taken on a real developer Mac.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude Code and Codex worktrees fill up your Mac because Git shares commit history across worktrees, but never shares untracked build directories like &lt;code&gt;node_modules&lt;/code&gt;, Rust &lt;code&gt;target/&lt;/code&gt;, Swift &lt;code&gt;.build/&lt;/code&gt;, or Python &lt;code&gt;.venv/&lt;/code&gt;.&lt;/strong&gt; Every parallel agent task that runs &lt;code&gt;npm install&lt;/code&gt;, &lt;code&gt;cargo build&lt;/code&gt;, or &lt;code&gt;swift build&lt;/code&gt; inside its own &lt;code&gt;git worktree&lt;/code&gt; creates a fresh multi-gigabyte copy of dependencies—and those folders stay on disk even after your PR is merged unless you remove the worktree with &lt;code&gt;git worktree remove&lt;/code&gt; or clear its build directories.&lt;/p&gt;

&lt;p&gt;On one developer Mac we measured (read-only &lt;code&gt;du&lt;/code&gt; across the home folder, excluding &lt;code&gt;~/Library&lt;/code&gt;), project build artifacts alone reached &lt;strong&gt;66.3 GB across 304 &lt;code&gt;node_modules&lt;/code&gt; folders&lt;/strong&gt;, &lt;strong&gt;5.1 GB across 8 &lt;code&gt;.venv&lt;/code&gt; folders&lt;/strong&gt;, and &lt;strong&gt;2.9 GB across 7 &lt;code&gt;.build&lt;/code&gt; folders&lt;/strong&gt;—alongside &lt;strong&gt;&lt;code&gt;~/.claude&lt;/code&gt; (1.9 GB)&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;~/.local/share/claude&lt;/code&gt; (902 MB)&lt;/strong&gt;, and &lt;strong&gt;&lt;code&gt;~/.codex&lt;/code&gt; (5.2 GB)&lt;/strong&gt;. Heavy parallel-agent users hit much steeper spikes: developers on &lt;code&gt;r/ClaudeCode&lt;/code&gt; and &lt;code&gt;r/ClaudeAI&lt;/code&gt; have reported leftover agent worktrees growing a single workspace to &lt;strong&gt;95 GB&lt;/strong&gt;, and parallel Rust agent checkouts generating &lt;strong&gt;10–40 GB &lt;code&gt;target/&lt;/code&gt; folders&lt;/strong&gt; each until the startup disk hit 95%+ full.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Run a read-only audit of your worktrees first
&lt;/h2&gt;

&lt;p&gt;Before deleting anything, measure where agent worktrees and their build folders actually sit on your Mac. The commands below are strictly read-only.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check worktree storage across common coding-agent locations
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Total disk usage in common agent worktree directories (read-only)&lt;/span&gt;
du -sh \
  ~/.claude/worktrees \
  ~/.codex/worktrees \
  ~/.cursor/worktrees 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null

&lt;span class="c"&gt;# Largest individual worktree folders inside ~/.claude/worktrees and ~/.codex/worktrees&lt;/span&gt;
du -sh ~/.claude/worktrees/* ~/.codex/worktrees/* 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; sort -h &lt;span class="o"&gt;|&lt;/span&gt; tail -20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  List every Git worktree registered by a repository
&lt;/h3&gt;

&lt;p&gt;Claude Code and other tools can also create worktrees inside a hidden folder inside the repo itself (such as &lt;code&gt;&amp;lt;repo&amp;gt;/.claude/worktrees&lt;/code&gt;) or in a sibling folder next to your repo. Inside any repository, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Repos/your-project
git worktree list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To see whether any worktrees are locked, detached, or already missing from disk (&lt;code&gt;prunable&lt;/code&gt;), add &lt;code&gt;--porcelain&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git worktree list --porcelain
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Find the biggest &lt;code&gt;node_modules&lt;/code&gt;, &lt;code&gt;target&lt;/code&gt;, and &lt;code&gt;.build&lt;/code&gt; folders inside worktrees
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find ~/.claude/worktrees ~/.codex/worktrees ~/.cursor/worktrees \
  \&lt;span class="o"&gt;(&lt;/span&gt; -name node_modules -o -name target -o -name .build -o -name .venv \&lt;span class="o"&gt;)&lt;/span&gt; \
  -type d -prune -exec du -sh &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; + 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; sort -h &lt;span class="o"&gt;|&lt;/span&gt; tail -25
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;code&gt;du&lt;/code&gt; shows total directory size, not how much is safe to delete blindly. A worktree may still contain uncommitted edits or an unmerged branch—always verify Git status before removing the checkout itself.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you want a quick read-only audit script covering Xcode, &lt;code&gt;node_modules&lt;/code&gt;, AI coding tools, and user caches together, you can also generate one with the free &lt;a href="https://getcleanbit.app/tools/disk-check/" rel="noopener noreferrer"&gt;CleanBit Disk Check audit generator&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Where Claude Code, Codex, and Cursor put worktrees
&lt;/h2&gt;

&lt;p&gt;Different AI coding tools store isolated worktrees in different places, and each location behaves slightly differently when you audit or clean it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;th&gt;Created by&lt;/th&gt;
&lt;th&gt;What eats the space&lt;/th&gt;
&lt;th&gt;Safe manual cleanup&lt;/th&gt;
&lt;th&gt;CleanBit coverage&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/.claude/worktrees&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;Duplicated &lt;code&gt;node_modules&lt;/code&gt;, &lt;code&gt;target/&lt;/code&gt;, &lt;code&gt;.build/&lt;/code&gt;, &lt;code&gt;.venv/&lt;/code&gt; per worktree&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;git worktree remove &amp;lt;path&amp;gt;&lt;/code&gt; (or delete build dirs inside idle checkouts)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Build Artifacts&lt;/strong&gt; scans this path by default, parses &lt;code&gt;.git&lt;/code&gt; &lt;code&gt;gitdir:&lt;/code&gt; to skip Git-tracked files, moves build folders to Trash&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;repo&amp;gt;/.claude/worktrees&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Claude Code (repo-local worktree mode)&lt;/td&gt;
&lt;td&gt;Same per-task build folders inside a hidden repo subfolder&lt;/td&gt;
&lt;td&gt;Run &lt;code&gt;git worktree list&lt;/code&gt; and &lt;code&gt;git worktree remove &amp;lt;path&amp;gt;&lt;/code&gt; inside the repo&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Manual only&lt;/strong&gt; (CleanBit skips hidden &lt;code&gt;.&lt;/code&gt; subfolders during recursive traversal)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/.codex/worktrees&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;OpenAI Codex app / CLI&lt;/td&gt;
&lt;td&gt;Duplicated &lt;code&gt;node_modules&lt;/code&gt;, Rust &lt;code&gt;target/&lt;/code&gt;, Python &lt;code&gt;.venv/&lt;/code&gt;, etc.&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;git worktree remove &amp;lt;path&amp;gt;&lt;/code&gt; or remove build folders in finished tasks&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Build Artifacts&lt;/strong&gt; scans this path by default, parses &lt;code&gt;.git&lt;/code&gt; &lt;code&gt;gitdir:&lt;/code&gt;, moves build folders to Trash&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;~/.cursor/worktrees&lt;/code&gt; (or &lt;code&gt;&amp;lt;repo&amp;gt;/.cursor/worktrees&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Cursor parallel agents&lt;/td&gt;
&lt;td&gt;Isolated checkouts with separate dependency and build trees&lt;/td&gt;
&lt;td&gt;Run &lt;code&gt;git worktree list&lt;/code&gt; / &lt;code&gt;git worktree remove &amp;lt;path&amp;gt;&lt;/code&gt; or clear via Cursor&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Manual only&lt;/strong&gt; (not currently in CleanBit's default search roots)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Visible sibling worktrees (e.g., &lt;code&gt;~/Repos/app-feature-a&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Manual &lt;code&gt;git worktree add&lt;/code&gt; or custom agent scripts&lt;/td&gt;
&lt;td&gt;Standard project build artifacts&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;git worktree remove &amp;lt;path&amp;gt;&lt;/code&gt; and &lt;code&gt;git worktree prune&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Build Artifacts&lt;/strong&gt; scans visible home folders (excluding &lt;code&gt;Library&lt;/code&gt;, &lt;code&gt;Movies&lt;/code&gt;, &lt;code&gt;Pictures&lt;/code&gt;, etc.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/private/tmp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Agent-triggered temporary Xcode or test builds&lt;/td&gt;
&lt;td&gt;Temporary &lt;code&gt;DerivedData&lt;/code&gt; or sandboxed test artifacts&lt;/td&gt;
&lt;td&gt;Reboot macOS or inspect &lt;code&gt;/private/tmp&lt;/code&gt; when no builds are active&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Outside sandbox&lt;/strong&gt; (CleanBit runs in App Sandbox without root and cannot access &lt;code&gt;/private/tmp&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  3. How to safely remove leftover Git worktrees (without losing work)
&lt;/h2&gt;

&lt;p&gt;Never start with &lt;code&gt;rm -rf&lt;/code&gt; on a worktree directory. Removing a worktree folder directly leaves stale metadata in &lt;code&gt;.git/worktrees/&lt;/code&gt; and gives you zero warning if an agent left uncommitted edits behind.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Check for uncommitted changes and unmerged commits
&lt;/h3&gt;

&lt;p&gt;For each worktree path printed by &lt;code&gt;git worktree list&lt;/code&gt;, inspect its working tree before touching it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Check uncommitted or untracked files inside a specific worktree&lt;/span&gt;
git -C /path/to/worktree status --short

&lt;span class="c"&gt;# From your main repo, see which branches have NOT been merged into main&lt;/span&gt;
git branch --no-merged main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;git status --short&lt;/code&gt; shows changes you want to keep, commit them or create a patch before removing the worktree.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Remove finished worktrees with &lt;code&gt;git worktree remove&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;git worktree remove&lt;/code&gt; refuses to delete a worktree that has untracked or modified files unless you pass &lt;code&gt;--force&lt;/code&gt;, making it much safer than &lt;code&gt;rm -rf&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Run from your main repository directory&lt;/span&gt;
git worktree remove /path/to/old-worktree
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If Git refuses because the only leftover files are disposable build caches (such as &lt;code&gt;node_modules&lt;/code&gt; or &lt;code&gt;target&lt;/code&gt;) and you have already confirmed no source edits exist, remove the build folder first or pass &lt;code&gt;--force&lt;/code&gt; only after verifying &lt;code&gt;git -C /path/to/old-worktree status&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Only after confirming no wanted source changes remain&lt;/span&gt;
git worktree remove --force /path/to/old-worktree
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Clean up stale Git metadata with &lt;code&gt;git worktree prune&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;If you (or a coding agent) already deleted a worktree folder manually in Finder or with &lt;code&gt;rm -rf&lt;/code&gt;, Git keeps dead administrative entries under &lt;code&gt;.git/worktrees/&lt;/code&gt;. Preview what Git would prune first with &lt;code&gt;--dry-run&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Preview stale worktree references without changing anything&lt;/span&gt;
git worktree prune --dry-run --verbose

&lt;span class="c"&gt;# Remove stale administrative entries&lt;/span&gt;
git worktree prune
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4: Delete merged temporary branches safely
&lt;/h3&gt;

&lt;p&gt;Use lowercase &lt;code&gt;-d&lt;/code&gt; (never &lt;code&gt;-D&lt;/code&gt; blindly)—Git will refuse to delete a branch if its commits are not yet merged:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git branch -d claude/old-feature-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Option B: Keep the worktree, delete only its build folder
&lt;/h3&gt;

&lt;p&gt;If you want to keep a paused worktree branch around for reference but reclaim the gigabytes immediately, delete only the regenerable build directory inside it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Example: clear Rust build output or Node dependencies inside a paused worktree&lt;/span&gt;
rm -rf /path/to/paused-worktree/target
&lt;span class="c"&gt;# or&lt;/span&gt;
rm -rf /path/to/paused-worktree/node_modules
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your JS/TS projects use &lt;code&gt;pnpm&lt;/code&gt;, also run &lt;code&gt;pnpm store prune&lt;/code&gt; afterward so unreferenced hard-linked packages are freed from &lt;code&gt;~/Library/pnpm&lt;/code&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; Avoid telling an AI coding agent to "clean up my disk" with shell access. Developers on &lt;code&gt;r/ClaudeCode&lt;/code&gt; have reported agents misclassifying source directories as disposable build caches and wiping them with &lt;code&gt;rm -rf&lt;/code&gt;. Keep disk cleanup read-only first, use &lt;code&gt;git worktree remove&lt;/code&gt; for checkouts, and prefer moving build folders to the Trash so you can put them back if needed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  4. How to prevent worktree disk bloat going forward
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prune right after merging&lt;/strong&gt;: Make &lt;code&gt;git worktree remove &amp;lt;path&amp;gt; &amp;amp;&amp;amp; git worktree prune&lt;/code&gt; part of your PR-merge habit instead of letting 20 parallel checkouts accumulate for months.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Share package stores where possible&lt;/strong&gt;: &lt;code&gt;pnpm&lt;/code&gt; hard-links packages from a single content-addressable store (&lt;code&gt;~/Library/pnpm&lt;/code&gt;), dramatically reducing real disk consumption across multiple worktrees compared to standard &lt;code&gt;npm install&lt;/code&gt; copies. (Note that &lt;code&gt;du&lt;/code&gt; still counts each worktree's hard-linked &lt;code&gt;node_modules&lt;/code&gt; unless deduplicated.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Share a Rust &lt;code&gt;CARGO_TARGET_DIR&lt;/code&gt; (if appropriate)&lt;/strong&gt;: For Rust repos using parallel worktrees, pointing non-overlapping builds at a shared target cache—or running &lt;code&gt;cargo clean&lt;/code&gt; when finishing a task—avoids keeping ten separate 15 GB &lt;code&gt;target/&lt;/code&gt; folders on disk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch the rest of your AI &amp;amp; developer footprint&lt;/strong&gt;: Worktrees are only one half of agent storage. See our related guides on &lt;a href="https://getcleanbit.app/guides/claude-code-cursor-codex-disk-space-mac/" rel="noopener noreferrer"&gt;tracking down Claude Code, Cursor, and Codex sessions and model caches&lt;/a&gt;, &lt;a href="https://getcleanbit.app/guides/how-to-find-and-delete-old-node-modules-on-mac/" rel="noopener noreferrer"&gt;finding and deleting old &lt;code&gt;node_modules&lt;/code&gt; folders on a Mac&lt;/a&gt;, &lt;a href="https://getcleanbit.app/guides/is-it-safe-to-delete-library-caches-mac/" rel="noopener noreferrer"&gt;whether &lt;code&gt;~/Library/Caches&lt;/code&gt; is safe to delete&lt;/a&gt;, and &lt;a href="https://getcleanbit.app/guides/best-disk-cleaners-mac-app-store/" rel="noopener noreferrer"&gt;comparing sandboxed disk cleaners on the Mac App Store&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Inspect worktree build artifacts visually with CleanBit (and honest limits)
&lt;/h2&gt;

&lt;p&gt;I'm the developer of &lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;&lt;strong&gt;CleanBit&lt;/strong&gt;&lt;/a&gt;, a sandboxed Mac App Store disk space cleaner for macOS 15+. If you want to reclaim gigabytes from duplicated &lt;code&gt;node_modules&lt;/code&gt;, Rust &lt;code&gt;target/&lt;/code&gt;, Swift &lt;code&gt;.build/&lt;/code&gt;, and Python &lt;code&gt;.venv/&lt;/code&gt; folders across your projects and worktrees without risking source code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Default worktree roots included&lt;/strong&gt;: CleanBit's &lt;strong&gt;Build Artifacts&lt;/strong&gt; module scans visible folders in your home directory plus &lt;strong&gt;&lt;code&gt;~/.claude/worktrees&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;~/.codex/worktrees&lt;/code&gt;&lt;/strong&gt; (up to 6 levels deep), matching 26 project artifact types only when their companion project marker file is present (&lt;code&gt;package.json&lt;/code&gt;, &lt;code&gt;Cargo.toml&lt;/code&gt;, &lt;code&gt;Package.swift&lt;/code&gt;, &lt;code&gt;pyproject.toml&lt;/code&gt;, &lt;code&gt;Podfile&lt;/code&gt;, etc.).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native &lt;code&gt;.git&lt;/code&gt; worktree parsing (&lt;code&gt;gitdir:&lt;/code&gt;)&lt;/strong&gt;: In a Git worktree, &lt;code&gt;.git&lt;/code&gt; is a text file pointing to &lt;code&gt;gitdir: ...&lt;/code&gt; rather than a folder. CleanBit reads that &lt;code&gt;gitdir:&lt;/code&gt; pointer and parses Git index formats v2, v3, and v4 directly inside the App Sandbox—skipping any directory containing Git-tracked files, and blocking the item if an index cannot be parsed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review-only and always moved to Trash&lt;/strong&gt;: Build artifacts are sorted by size, show when each project was last modified, are never pre-selected, and are &lt;strong&gt;always moved to the Trash&lt;/strong&gt;. CleanBit removes only the disposable build folders—never your source code or the worktree checkout itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Honest boundaries&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;CleanBit does &lt;strong&gt;not&lt;/strong&gt; run &lt;code&gt;git worktree remove&lt;/code&gt; or delete Git branches—use Section 3 above when you want to remove the worktree checkout itself.&lt;/li&gt;
&lt;li&gt;Default search roots do &lt;strong&gt;not&lt;/strong&gt; currently include &lt;code&gt;~/.cursor/worktrees&lt;/code&gt;, and recursive scanning skips nested hidden folders starting with &lt;code&gt;.&lt;/code&gt; (such as &lt;code&gt;&amp;lt;repo&amp;gt;/.claude/worktrees&lt;/code&gt; or &lt;code&gt;&amp;lt;repo&amp;gt;/.cursor/worktrees&lt;/code&gt;), so audit those with &lt;code&gt;git worktree list&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Because CleanBit runs inside Apple's App Sandbox with no root access, temporary build copies inside &lt;code&gt;/private/tmp&lt;/code&gt; remain outside its reach.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8cwrue8tmnbssm8rigvz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8cwrue8tmnbssm8rigvz.webp" alt="CleanBit Build Artifacts view showing project build folders, last modified dates, and Git-safe selection" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Scanning and space analysis are free, and your first 2 cleans are free on the &lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Mac App Store&lt;/a&gt; (optional $4.99/mo, $19.99/yr, or $29.99 one-time lifetime purchase).&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why do Claude Code worktrees take up so much disk space?
&lt;/h3&gt;

&lt;p&gt;Git worktrees share your repository's &lt;code&gt;.git&lt;/code&gt; object database, so source code and commit history take almost no extra space. The bloat comes from untracked dependencies and build caches—each parallel worktree installs its own &lt;code&gt;node_modules&lt;/code&gt;, Rust &lt;code&gt;target/&lt;/code&gt;, Swift &lt;code&gt;.build/&lt;/code&gt;, or Python &lt;code&gt;.venv/&lt;/code&gt;, multiplying disk usage by the number of active or forgotten worktrees.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is &lt;code&gt;git worktree remove&lt;/code&gt; safer than &lt;code&gt;rm -rf&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;Yes. &lt;code&gt;git worktree remove &amp;lt;path&amp;gt;&lt;/code&gt; refuses to delete a worktree if it has uncommitted changes or untracked files, and it cleans up the matching registration inside &lt;code&gt;.git/worktrees/&lt;/code&gt;. Running &lt;code&gt;rm -rf&lt;/code&gt; bypasses Git's safety checks and leaves stale worktree metadata behind until you run &lt;code&gt;git worktree prune&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does &lt;code&gt;git worktree prune&lt;/code&gt; actually delete?
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;git worktree prune&lt;/code&gt; does &lt;strong&gt;not&lt;/strong&gt; delete live working directories or source files. It only removes stale administrative metadata files inside &lt;code&gt;.git/worktrees/&lt;/code&gt; that point to worktree folders which were already deleted or moved manually. You can preview its actions safely with &lt;code&gt;git worktree prune --dry-run --verbose&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I delete &lt;code&gt;node_modules&lt;/code&gt; or &lt;code&gt;target/&lt;/code&gt; inside a worktree without deleting the worktree?
&lt;/h3&gt;

&lt;p&gt;Yes, as long as no dev server, watcher, or coding agent is currently running in that worktree. Removing only &lt;code&gt;node_modules&lt;/code&gt;, &lt;code&gt;target/&lt;/code&gt;, or &lt;code&gt;.build/&lt;/code&gt; keeps your branch, uncommitted source files, and Git worktree intact—you just re-run &lt;code&gt;npm install&lt;/code&gt; or &lt;code&gt;cargo build&lt;/code&gt; if you return to that worktree later.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does CleanBit scan Claude Code and Codex worktrees?
&lt;/h3&gt;

&lt;p&gt;CleanBit's &lt;strong&gt;Build Artifacts&lt;/strong&gt; module scans &lt;code&gt;~/.claude/worktrees&lt;/code&gt;, &lt;code&gt;~/.codex/worktrees&lt;/code&gt;, and visible home folders for disposable build directories (&lt;code&gt;node_modules&lt;/code&gt;, &lt;code&gt;target&lt;/code&gt;, &lt;code&gt;.build&lt;/code&gt;, &lt;code&gt;.venv&lt;/code&gt;, etc.), parses &lt;code&gt;.git&lt;/code&gt; &lt;code&gt;gitdir:&lt;/code&gt; pointers to skip Git-tracked files, and moves selected build folders to the Trash. It does not remove Git worktree checkouts or branches themselves, and currently does not auto-scan &lt;code&gt;~/.cursor/worktrees&lt;/code&gt; or hidden repo subfolders like &lt;code&gt;&amp;lt;repo&amp;gt;/.claude/worktrees&lt;/code&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Original guide with interactive table of contents &amp;amp; related Mac storage guides: &lt;a href="https://getcleanbit.app/guides/claude-code-worktrees-disk-space-mac/" rel="noopener noreferrer"&gt;https://getcleanbit.app/guides/claude-code-worktrees-disk-space-mac/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>macosgitclaproductivityude</category>
    </item>
    <item>
      <title>Is It Safe to Delete ~/Library/Caches on a Mac? How to Clear Cache Safely</title>
      <dc:creator>Hard Work</dc:creator>
      <pubDate>Tue, 24 Nov 2026 00:18:10 +0000</pubDate>
      <link>https://dev.to/fastlog/is-it-safe-to-delete-librarycaches-on-a-mac-how-to-clear-cache-safely-259d</link>
      <guid>https://dev.to/fastlog/is-it-safe-to-delete-librarycaches-on-a-mac-how-to-clear-cache-safely-259d</guid>
      <description>&lt;p&gt;&lt;strong&gt;Yes—most subfolders inside &lt;code&gt;~/Library/Caches&lt;/code&gt; are safe to delete on a Mac, as long as you quit running apps first, remove only the contents inside (never the &lt;code&gt;Caches&lt;/code&gt; folder itself), and skip Apple system caches and sensitive tool data.&lt;/strong&gt; Apps automatically recreate their cache files the next time you open them, so the only normal side effect is a slightly slower first launch or re-downloading cached assets.&lt;/p&gt;

&lt;p&gt;What you should &lt;strong&gt;not&lt;/strong&gt; touch are macOS's system-wide &lt;code&gt;/Library/Caches&lt;/code&gt; and &lt;code&gt;/System/Library/Caches&lt;/code&gt; folders—macOS manages those itself. Also keep expectations realistic: clearing cache reclaims disk space, &lt;strong&gt;not&lt;/strong&gt; RAM or CPU performance; in fact, rebuilding caches can briefly use a little extra disk and network activity right after cleanup.&lt;/p&gt;

&lt;p&gt;On one developer Mac we measured using CleanBit's scan engine, general &lt;strong&gt;App Caches&lt;/strong&gt; inside &lt;code&gt;~/Library/Caches&lt;/code&gt; held &lt;strong&gt;5.42 GB across 65 items&lt;/strong&gt;, &lt;strong&gt;Chrome Disk Cache&lt;/strong&gt; (&lt;code&gt;~/Library/Caches/Google/Chrome&lt;/code&gt;) held &lt;strong&gt;4.37 GB&lt;/strong&gt;, and dedicated developer caches living under &lt;code&gt;~/Library/Caches&lt;/code&gt; added over &lt;strong&gt;1.2 GB&lt;/strong&gt; more (including 575 MB for Swift Package Manager, 379.7 MB of Homebrew downloads, 261.7 MB of &lt;code&gt;pip&lt;/code&gt; cache, and 24.1 MB of &lt;code&gt;pnpm&lt;/code&gt; metadata). Even so, &lt;code&gt;~/Library/Caches&lt;/code&gt; was only a slice of the &lt;strong&gt;124.29 GB&lt;/strong&gt; scanned on that machine—far smaller than &lt;code&gt;iOS DeviceSupport&lt;/code&gt; (24.1 GB &lt;code&gt;du&lt;/code&gt;), &lt;code&gt;CoreSimulator/Devices&lt;/code&gt; (43.0 GB &lt;code&gt;du&lt;/code&gt;), Xcode &lt;code&gt;DerivedData&lt;/code&gt; (15.3 GB &lt;code&gt;du&lt;/code&gt;), and old &lt;code&gt;node_modules&lt;/code&gt; folders (66.3 GB &lt;code&gt;du&lt;/code&gt;). Always measure first so you know whether caches are actually where your storage went.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Check how much space &lt;code&gt;~/Library/Caches&lt;/code&gt; uses (read-only)
&lt;/h2&gt;

&lt;p&gt;Before deleting anything, check the total size of your user cache folder and see which individual apps are taking the most space:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Total size of your user cache folder (read-only)&lt;/span&gt;
du -sh ~/Library/Caches

&lt;span class="c"&gt;# Top 20 largest folders inside ~/Library/Caches&lt;/span&gt;
du -sh ~/Library/Caches/* 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; sort -h &lt;span class="o"&gt;|&lt;/span&gt; tail -20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you also use web browsers with profile-level caches or developer tools that store caches outside &lt;code&gt;~/Library/Caches&lt;/code&gt;, you can inspect them read-only too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;du -sh \
  ~/Library/Caches/Google/Chrome \
  ~/Library/Caches/Firefox \
  ~/Library/Caches/Homebrew/downloads \
  ~/Library/Caches/pip \
  ~/Library/Caches/org.swift.swiftpm \
  ~/Library/Caches/Yarn 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;code&gt;du&lt;/code&gt; reports total disk usage for a directory, not how much is safe to remove blindly. Some tools place virtual environments, downloaded browser binaries, or Apple system databases inside &lt;code&gt;~/Library/Caches&lt;/code&gt;, so always inspect folder names before deleting.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  2. &lt;code&gt;~/Library/Caches&lt;/code&gt; vs. &lt;code&gt;/Library/Caches&lt;/code&gt;: what is safe and what to leave alone
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;th&gt;What lives inside&lt;/th&gt;
&lt;th&gt;Safe to clear?&lt;/th&gt;
&lt;th&gt;What happens after removal&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/Library/Caches/&amp;lt;third-party app&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;App thumbnails, HTTP/image caches, updater downloads&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Usually yes&lt;/strong&gt; (quit the app first)&lt;/td&gt;
&lt;td&gt;App rebuilds the cache on next launch; first launch may feel slightly slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Browser caches (&lt;code&gt;~/Library/Caches/Google/Chrome&lt;/code&gt;, &lt;code&gt;Firefox&lt;/code&gt;, &lt;code&gt;com.apple.Safari&lt;/code&gt;, plus profile &lt;code&gt;Cache&lt;/code&gt;/&lt;code&gt;Code Cache&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Cached web pages, scripts, images, and shader caches&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Yes&lt;/strong&gt; (quit the browser first)&lt;/td&gt;
&lt;td&gt;Websites re-download assets on next visit; cookies, history, bookmarks, and passwords stay intact&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Developer caches in &lt;code&gt;~/Library/Caches&lt;/code&gt; (&lt;code&gt;Homebrew/downloads&lt;/code&gt;, &lt;code&gt;pip&lt;/code&gt;, &lt;code&gt;Yarn&lt;/code&gt;, &lt;code&gt;org.swift.swiftpm&lt;/code&gt;, &lt;code&gt;CocoaPods&lt;/code&gt;, &lt;code&gt;go-build&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Downloaded package archives and build intermediates&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Yes&lt;/strong&gt; (when no build or install is running)&lt;/td&gt;
&lt;td&gt;Package managers re-download archives next time you install or rebuild&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Risky subfolders inside &lt;code&gt;~/Library/Caches&lt;/code&gt; (&lt;code&gt;com.apple.FontRegistry*&lt;/code&gt;, &lt;code&gt;com.apple.spotlight*&lt;/code&gt;, &lt;code&gt;CloudKit*&lt;/code&gt;, &lt;code&gt;com.apple.finder&lt;/code&gt;, &lt;code&gt;pypoetry/virtualenvs*&lt;/code&gt;, &lt;code&gt;ms-playwright*&lt;/code&gt;, &lt;code&gt;pnpm/dlx*&lt;/code&gt;, &lt;code&gt;JetBrains*&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;macOS system indexes/databases, Python virtualenvs, Playwright browser runtimes, IDE indexes&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No—skip these&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Deleting them can break font rendering, Finder/CloudKit sync, local Python virtualenvs, or test runners until rebuilt/reinstalled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/Library/Containers/&amp;lt;bundle-id&amp;gt;/Data/Library/Caches&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Caches of sandboxed Mac App Store apps&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Usually yes&lt;/strong&gt; (quit the app first)&lt;/td&gt;
&lt;td&gt;Sandboxed app regenerates its cache on next launch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;/Library/Caches&lt;/code&gt; (root Library)&lt;/td&gt;
&lt;td&gt;System-wide caches shared across all user accounts and daemons&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Leave alone&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Requires admin privileges and can cause glitches in shared services; macOS prunes these itself&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/System/Library/Caches&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Core macOS operating system caches (SIP-protected)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Never touch&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Protected by System Integrity Protection; attempting to modify it risks system instability&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  3. How to clear cache on a Mac manually (Finder &amp;amp; Terminal)
&lt;/h2&gt;

&lt;p&gt;You do not need any third-party app to clear &lt;code&gt;~/Library/Caches&lt;/code&gt; safely. Follow this conservative sequence instead of wiping the whole folder at once.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Quit all running apps first
&lt;/h3&gt;

&lt;p&gt;Deleting cache files while an app holds open file handles or writes to a SQLite cache database can cause the app to crash, lose transient state, or keep disk space occupied until the process exits. Quit your browsers, editors, chat apps, and Xcode (&lt;code&gt;Command + Q&lt;/code&gt;) before cleaning.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Inspect and clear specific folders in Finder
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Finder&lt;/strong&gt; and press &lt;code&gt;Shift + Command + G&lt;/code&gt; (Go to Folder).&lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;~/Library/Caches&lt;/code&gt; and press &lt;strong&gt;Return&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Switch to List view (&lt;code&gt;Command + 2&lt;/code&gt;) and sort by &lt;strong&gt;Size&lt;/strong&gt; (enable &lt;em&gt;Calculate all sizes&lt;/em&gt; via &lt;code&gt;Command + J&lt;/code&gt; if sizes are blank).&lt;/li&gt;
&lt;li&gt;Select specific large third-party app cache folders whose apps are &lt;strong&gt;not running&lt;/strong&gt;—skipping &lt;code&gt;com.apple.*&lt;/code&gt; folders, password managers, cloud sync apps, IDEs, and anything you do not recognize.&lt;/li&gt;
&lt;li&gt;Press &lt;code&gt;Command + Delete&lt;/code&gt; to move those folders to the &lt;strong&gt;Trash&lt;/strong&gt; (never delete the parent &lt;code&gt;~/Library/Caches&lt;/code&gt; folder itself).&lt;/li&gt;
&lt;li&gt;Relaunch your apps to verify everything opens normally, then empty the Trash to reclaim the disk space.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 3: Clear browser caches safely (without losing logins)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Safari&lt;/strong&gt;: Open &lt;strong&gt;Safari → Settings → Advanced&lt;/strong&gt;, check &lt;strong&gt;Show features for web developers&lt;/strong&gt;, then press &lt;code&gt;Option + Command + E&lt;/code&gt; (or click &lt;strong&gt;Develop → Empty Caches&lt;/strong&gt;). This clears web cache without removing cookies, history, or passwords.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chrome / Brave / Edge / Arc&lt;/strong&gt;: Open &lt;strong&gt;Delete Browsing Data&lt;/strong&gt;, check &lt;strong&gt;only&lt;/strong&gt; &lt;em&gt;Cached images and files&lt;/em&gt; (leave &lt;em&gt;Cookies&lt;/em&gt; and &lt;em&gt;Passwords&lt;/em&gt; unchecked), and confirm.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Firefox&lt;/strong&gt;: Go to &lt;strong&gt;Settings → Privacy &amp;amp; Security → Cookies and Site Data → Clear Data&lt;/strong&gt;, and check &lt;strong&gt;only&lt;/strong&gt; &lt;em&gt;Temporary cached files and pages&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 4: Clean developer caches with their official commands
&lt;/h3&gt;

&lt;p&gt;When large folders inside &lt;code&gt;~/Library/Caches&lt;/code&gt; belong to developer tools, their built-in cleanup commands are safer than &lt;code&gt;rm -rf&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Clean old Homebrew download caches&lt;/span&gt;
brew cleanup --prune=all

&lt;span class="c"&gt;# Purge pip's HTTP and wheel cache&lt;/span&gt;
pip cache purge

&lt;span class="c"&gt;# Remove unused pnpm store packages (do not delete ~/Library/pnpm/store manually)&lt;/span&gt;
pnpm store prune
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; Avoid running &lt;code&gt;rm -rf ~/Library/Caches/*&lt;/code&gt; blindly. Wildcard deletion hits caches of currently running apps and background services, wipes Apple subsystem caches like &lt;code&gt;com.apple.FontRegistry&lt;/code&gt;, &lt;code&gt;CloudKit&lt;/code&gt;, and &lt;code&gt;com.apple.finder&lt;/code&gt;, and can accidentally destroy Poetry virtual environments (&lt;code&gt;pypoetry/virtualenvs&lt;/code&gt;), Playwright browsers (&lt;code&gt;ms-playwright&lt;/code&gt;), or JetBrains caches stored inside &lt;code&gt;~/Library/Caches&lt;/code&gt;. Always target specific verified folders—or move them to the Trash first.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  What if &lt;code&gt;~/Library/Caches&lt;/code&gt; is only a few gigabytes?
&lt;/h3&gt;

&lt;p&gt;On many Macs—especially developer or AI-coding machines—&lt;code&gt;~/Library/Caches&lt;/code&gt; is not the main reason storage is full. If your disk is still tight after checking caches, check our dedicated guides on &lt;a href="https://getcleanbit.app/guides/is-xcode-deriveddata-safe-to-delete/" rel="noopener noreferrer"&gt;whether Xcode &lt;code&gt;DerivedData&lt;/code&gt; is safe to delete&lt;/a&gt;, &lt;a href="https://getcleanbit.app/guides/ios-devicesupport-and-simulators-disk-space-mac/" rel="noopener noreferrer"&gt;cleaning &lt;code&gt;iOS DeviceSupport&lt;/code&gt; and Xcode Simulators&lt;/a&gt;, &lt;a href="https://getcleanbit.app/guides/how-to-find-and-delete-old-node-modules-on-mac/" rel="noopener noreferrer"&gt;finding and deleting old &lt;code&gt;node_modules&lt;/code&gt; folders&lt;/a&gt;, &lt;a href="https://getcleanbit.app/guides/claude-code-worktrees-disk-space-mac/" rel="noopener noreferrer"&gt;removing leftover Claude Code git worktrees&lt;/a&gt;, and &lt;a href="https://getcleanbit.app/guides/claude-code-cursor-codex-disk-space-mac/" rel="noopener noreferrer"&gt;tracking down Claude Code, Cursor, and Codex disk space&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. How CleanBit handles &lt;code&gt;~/Library/Caches&lt;/code&gt; (and its sandbox boundaries)
&lt;/h2&gt;

&lt;p&gt;I'm the developer of &lt;strong&gt;&lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;CleanBit&lt;/a&gt;&lt;/strong&gt;, a sandboxed Mac App Store disk space cleaner for macOS 15+ (v1.0.1 now supports 9 languages and per-group Smart Scan cleaning). Because blind wildcard cleaning inside &lt;code&gt;~/Library/Caches&lt;/code&gt; causes unnecessary breakage, CleanBit applies multiple guardrails before anything can be removed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Running-app blocking (checked twice)&lt;/strong&gt;: CleanBit checks currently running apps during scanning and locks their caches so they cannot be selected—then re-checks running apps again immediately before deleting each individual item, along with verifying the file path, symlink target, and file identity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Protected Apple &amp;amp; third-party bundle lists&lt;/strong&gt;: CleanBit refuses to delete the &lt;code&gt;~/Library/Caches&lt;/code&gt; folder itself, automatically skips &lt;code&gt;com.apple.*&lt;/code&gt; and macOS subsystem prefixes (&lt;code&gt;FontRegistry&lt;/code&gt;, &lt;code&gt;Spotlight&lt;/code&gt;, &lt;code&gt;CloudKit&lt;/code&gt;, &lt;code&gt;Finder&lt;/code&gt;, &lt;code&gt;Keychain&lt;/code&gt;, and more), excludes sensitive tool paths (&lt;code&gt;pypoetry/virtualenvs&lt;/code&gt;, &lt;code&gt;ms-playwright&lt;/code&gt;, &lt;code&gt;pnpm/dlx&lt;/code&gt;, &lt;code&gt;JetBrains&lt;/code&gt;), and skips over 300 protected third-party app bundle patterns during broad cache sweeps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dedicated rules with no double-counting&lt;/strong&gt;: Browser caches (Safari, Chrome, Edge, Brave, Arc, Vivaldi, Firefox—without touching cookies, history, or passwords) and developer caches (Xcode, Homebrew, &lt;code&gt;pip&lt;/code&gt;, Yarn, SwiftPM, CocoaPods, Go) are handled by their own specific rules so nothing is counted twice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sandboxed App Caches (&lt;code&gt;~/Library/Containers&lt;/code&gt;)&lt;/strong&gt;: If you optionally grant Full Disk Access, CleanBit can also inspect &lt;code&gt;Data/Library/Caches&lt;/code&gt; and &lt;code&gt;Data/tmp&lt;/code&gt; inside sandboxed app containers after verifying each container's &lt;code&gt;containermanagerd&lt;/code&gt; metadata matches its bundle ID.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clear deletion control &amp;amp; honest sandbox limits&lt;/strong&gt;: Recommended caches are deleted permanently by default so disk space returns right away (or you can switch Recommended items to move to Trash in Settings), while Review items always move to the Trash. Because CleanBit runs inside Apple's App Sandbox with no root privileges and no background helper daemon, it &lt;strong&gt;never touches &lt;code&gt;/Library/Caches&lt;/code&gt;, &lt;code&gt;/System/Library/Caches&lt;/code&gt;, &lt;code&gt;/private/tmp&lt;/code&gt;, APFS local snapshots, or iCloud Drive synced files&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h9sim52k56b5dx6uc0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h9sim52k56b5dx6uc0.webp" alt="CleanBit Smart Scan showing App Caches, Browser Caches, and impact notes before confirmation" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Scanning and your first 2 cleans are free on the &lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Mac App Store&lt;/a&gt; (with monthly, yearly, or one-time lifetime options).&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://getcleanbit.app/guides/is-it-safe-to-delete-library-caches-mac/" rel="noopener noreferrer"&gt;getcleanbit.app/guides/is-it-safe-to-delete-library-caches-mac/&lt;/a&gt;. Written by the CleanBit developer with AI assistance; all measurements were taken on a real developer Mac.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>apple</category>
      <category>productivity</category>
    </item>
    <item>
      <title>iOS DeviceSupport and Simulators Taking 40 GB? What You Can Safely Remove</title>
      <dc:creator>Hard Work</dc:creator>
      <pubDate>Mon, 23 Nov 2026 00:15:32 +0000</pubDate>
      <link>https://dev.to/fastlog/ios-devicesupport-and-simulators-taking-40-gb-what-you-can-safely-remove-52np</link>
      <guid>https://dev.to/fastlog/ios-devicesupport-and-simulators-taking-40-gb-what-you-can-safely-remove-52np</guid>
      <description>&lt;p&gt;&lt;strong&gt;Yes—older &lt;code&gt;iOS DeviceSupport&lt;/code&gt; folders and unused Simulator runtimes, devices, and caches are usually safe to remove, and they often reclaim far more space than &lt;code&gt;DerivedData&lt;/code&gt;.&lt;/strong&gt; Every physical iPhone or iPad OS version you debug adds several gigabytes of symbol files, while each Xcode upgrade leaves behind old Simulator devices and system caches that never clean themselves up.&lt;/p&gt;

&lt;p&gt;On one developer Mac we measured (read-only &lt;code&gt;du&lt;/code&gt;), &lt;strong&gt;&lt;code&gt;~/Library/Developer/Xcode/iOS DeviceSupport&lt;/code&gt; occupied 24.1 GB&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;~/Library/Developer/CoreSimulator/Devices&lt;/code&gt; occupied 43.0 GB&lt;/strong&gt;—more than four times the 15.3 GB sitting in &lt;code&gt;DerivedData&lt;/code&gt; on the same machine. Keep in mind that &lt;code&gt;du&lt;/code&gt; reports total folder size, not how much is safe to delete blindly: active simulators hold your test app data, and deleting the DeviceSupport version matching your current test phone forces Xcode to re-copy symbols next time you plug it in.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Measure Xcode device and simulator storage first (read-only)
&lt;/h2&gt;

&lt;p&gt;Before removing anything, inspect how much space each folder actually takes on your Mac:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;du -sh \
  ~/Library/Developer/Xcode/iOS\ DeviceSupport \
  ~/Library/Developer/Xcode/watchOS\ DeviceSupport \
  ~/Library/Developer/Xcode/tvOS\ DeviceSupport \
  ~/Library/Developer/Xcode/visionOS\ DeviceSupport \
  ~/Library/Developer/CoreSimulator/Devices \
  ~/Library/Developer/CoreSimulator/Caches \
  ~/Library/Developer/Xcode/UserData/Previews 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To see which installed Simulator runtimes (the multi-gigabyte OS disk images managed by Xcode) are eating space outside your home folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcrun simctl runtime list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And to list your individual Simulator devices, including unavailable ones left over from older Xcode versions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcrun simctl list devices
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. What lives in each folder—and what is safe to remove
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;th&gt;What lives inside&lt;/th&gt;
&lt;th&gt;Safe to delete?&lt;/th&gt;
&lt;th&gt;What happens after removal&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;~/Library/Developer/Xcode/iOS DeviceSupport&lt;/code&gt; (and &lt;code&gt;watchOS&lt;/code&gt;, &lt;code&gt;tvOS&lt;/code&gt;, &lt;code&gt;visionOS&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Debug symbols copied from physical devices you connected to Xcode&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Older versions: yes&lt;/strong&gt; (keep your 1–2 newest OS versions)&lt;/td&gt;
&lt;td&gt;Xcode re-copies symbols if you reconnect an older physical device&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/Library/Developer/CoreSimulator/Caches&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shared Simulator runtime and dyld caches&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Yes&lt;/strong&gt; (quit Simulator and Xcode first)&lt;/td&gt;
&lt;td&gt;Simulator rebuilds caches on next launch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;~/Library/Developer/CoreSimulator/Devices/&amp;lt;UUID&amp;gt;/data/Library/Caches&lt;/code&gt; (and diagnostic/asset caches)&lt;/td&gt;
&lt;td&gt;Per-simulator system caches, MobileAsset downloads, and diagnostic logs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes, when that simulator is shut down&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Installed test apps and app data stay intact; system assets re-download if needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Entire &lt;code&gt;CoreSimulator/Devices/&amp;lt;UUID&amp;gt;&lt;/code&gt; folders&lt;/td&gt;
&lt;td&gt;Full virtual devices, including installed test apps, Keychain, and app data&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Review&lt;/strong&gt; (use &lt;code&gt;xcrun simctl&lt;/code&gt;, not &lt;code&gt;rm -rf&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Erases that simulator's apps and local test state permanently&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Simulator Runtime Images (&lt;code&gt;/Library/Developer/CoreSimulator/Volumes&lt;/code&gt; &amp;amp; Xcode Components)&lt;/td&gt;
&lt;td&gt;Multi-GB iOS/watchOS/visionOS OS images (often 7–10 GB each)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Older runtimes: yes&lt;/strong&gt; (via &lt;code&gt;xcrun simctl runtime delete&lt;/code&gt; or Xcode Settings)&lt;/td&gt;
&lt;td&gt;You must re-download that OS runtime if you need to test on it again&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/Library/Developer/Xcode/UserData/Previews&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;SwiftUI Canvas preview simulators and caches&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Yes&lt;/strong&gt; (quit Xcode first)&lt;/td&gt;
&lt;td&gt;Xcode regenerates preview data next time you open a SwiftUI Canvas&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; On Xcode 15 and newer, iOS 17+ devices use CoreDevice shared symbols rather than creating new folders inside &lt;code&gt;iOS DeviceSupport&lt;/code&gt;. If your &lt;code&gt;~/Library/Developer/Xcode/iOS DeviceSupport&lt;/code&gt; folder is still 20 GB+, those folders are almost always leftover symbols from iOS 16 and earlier test devices.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  3. Safe manual cleanup commands
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Always quit Xcode and the Simulator app first&lt;/strong&gt; before deleting any Xcode or CoreSimulator files.&lt;/p&gt;

&lt;h3&gt;
  
  
  Clean old &lt;code&gt;iOS DeviceSupport&lt;/code&gt; versions
&lt;/h3&gt;

&lt;p&gt;List folders sorted by modification date so you can see which OS versions you haven't touched in months:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ls -lt ~/Library/Developer/Xcode/iOS\ DeviceSupport
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep the 1–2 newest versions you actively test on, and move older version folders to the Trash in Finder (&lt;code&gt;Shift + Command + G&lt;/code&gt; → &lt;code&gt;~/Library/Developer/Xcode/iOS DeviceSupport&lt;/code&gt;) or remove a specific old folder in Terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Example: remove one specific old iOS version folder after verifying its name&lt;/span&gt;
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/16.4\ *
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Clean unavailable Simulator devices (safest first step)
&lt;/h3&gt;

&lt;p&gt;When you update Xcode, simulators tied to removed runtimes become &lt;code&gt;unavailable&lt;/code&gt; but stay on disk. Remove only unavailable devices with Apple's official CLI:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h3&gt;
  
  
  Remove old Simulator runtimes (often the biggest win)
&lt;/h3&gt;

&lt;p&gt;A single outdated iOS Simulator runtime can take &lt;strong&gt;7–10 GB&lt;/strong&gt;. List installed runtimes with their identifiers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcrun simctl runtime list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Delete a specific unused runtime by its UUID (or remove them via &lt;strong&gt;Xcode → Settings → Components&lt;/strong&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Replace &amp;lt;RUNTIME_UUID&amp;gt; with the identifier from `xcrun simctl runtime list`&lt;/span&gt;
xcrun simctl runtime delete &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;RUNTIME_UUID&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also ask Xcode to prune unused runtimes that haven't been used in over a set number of days:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Preview/remove runtimes unused for more than 30 days&lt;/span&gt;
xcrun simctl runtime delete --notUsedSinceDays 30
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Clear SwiftUI Preview caches and shared Simulator caches
&lt;/h3&gt;

&lt;p&gt;On the developer Mac we measured, &lt;code&gt;~/Library/Developer/Xcode/UserData/Previews&lt;/code&gt; held &lt;strong&gt;3.44 GB&lt;/strong&gt; on its own. After quitting Xcode and Simulator:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcrun simctl --set previews delete all
rm -rf ~/Library/Developer/CoreSimulator/Caches/*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; Avoid running &lt;code&gt;rm -rf ~/Library/Developer/CoreSimulator/Devices/*&lt;/code&gt; directly while &lt;code&gt;CoreSimulatorService&lt;/code&gt; is running. Deleting device UUID folders behind &lt;code&gt;simctl&lt;/code&gt;'s back can leave Xcode unable to boot simulators until you reboot or run &lt;code&gt;killall -9 com.apple.CoreSimulator.CoreSimulatorService&lt;/code&gt;. Always use &lt;code&gt;xcrun simctl delete&lt;/code&gt; to remove whole simulators.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For the rest of your Xcode and developer footprint, check our guides on &lt;a href="https://getcleanbit.app/guides/is-xcode-deriveddata-safe-to-delete/" rel="noopener noreferrer"&gt;whether Xcode &lt;code&gt;DerivedData&lt;/code&gt; is safe to delete&lt;/a&gt;, &lt;a href="https://getcleanbit.app/guides/is-it-safe-to-delete-library-caches-mac/" rel="noopener noreferrer"&gt;whether &lt;code&gt;~/Library/Caches&lt;/code&gt; is safe to delete on a Mac&lt;/a&gt;, &lt;a href="https://getcleanbit.app/guides/how-to-find-and-delete-old-node-modules-on-mac/" rel="noopener noreferrer"&gt;finding and deleting old &lt;code&gt;node_modules&lt;/code&gt; folders&lt;/a&gt;, and &lt;a href="https://getcleanbit.app/guides/claude-code-cursor-codex-disk-space-mac/" rel="noopener noreferrer"&gt;cleaning Claude Code, Cursor, and Codex disk space on macOS&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. What CleanBit cleans—and what stays manual
&lt;/h2&gt;

&lt;p&gt;I'm the developer of &lt;strong&gt;&lt;a href="https://getcleanbit.app/" rel="noopener noreferrer"&gt;CleanBit&lt;/a&gt;&lt;/strong&gt; (&lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Mac App Store&lt;/a&gt;), a sandboxed Mac App Store disk space cleaner for macOS 15+. CleanBit handles the repetitive home-folder Xcode caches automatically with strict guards, while staying transparent about what requires &lt;code&gt;xcrun simctl&lt;/code&gt; or Xcode Settings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Old DeviceSupport Versions (Recommended)&lt;/strong&gt;: Scans &lt;code&gt;iOS&lt;/code&gt;, &lt;code&gt;macOS&lt;/code&gt;, &lt;code&gt;watchOS&lt;/code&gt;, &lt;code&gt;tvOS&lt;/code&gt;, &lt;code&gt;visionOS&lt;/code&gt;, and &lt;code&gt;xrOS&lt;/code&gt; DeviceSupport folders, blocks cleanup while Xcode is running, and &lt;strong&gt;automatically keeps the 2 most recently modified versions&lt;/strong&gt; per platform. On the developer Mac we measured, CleanBit found 4 &lt;code&gt;iOS DeviceSupport&lt;/code&gt; folders, locked the 2 newest, and marked &lt;strong&gt;12.76 GB&lt;/strong&gt; as safely cleanable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Caches Inside Simulator Devices (Recommended)&lt;/strong&gt;: Reads each simulator's &lt;code&gt;device.plist&lt;/code&gt; and &lt;strong&gt;only cleans simulators verified as shut down (&lt;code&gt;state == 1&lt;/code&gt;)&lt;/strong&gt;, targeting only five regenerable cache/diagnostic paths (&lt;code&gt;Library/Caches&lt;/code&gt;, &lt;code&gt;MobileAsset/AssetsV2&lt;/code&gt;, &lt;code&gt;var/db/diagnostics&lt;/code&gt;, &lt;code&gt;var/db/uuidtext&lt;/code&gt;, and &lt;code&gt;PRBPosterExtensionDataStore&lt;/code&gt;) so your installed simulator apps and test data remain untouched. On the same developer Mac, CleanBit found 30 cache entries (25.6 GB), blocked 15 from non-shutdown simulators, and marked &lt;strong&gt;9.29 GB&lt;/strong&gt; as safely cleanable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Simulator Caches &amp;amp; SwiftUI Preview Data (Recommended)&lt;/strong&gt;: Cleans &lt;code&gt;CoreSimulator/Caches&lt;/code&gt; and &lt;code&gt;Xcode/UserData/Previews&lt;/code&gt; (3.44 GB on our measured Mac) when Xcode and Simulator are closed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What CleanBit deliberately leaves to &lt;code&gt;xcrun simctl&lt;/code&gt; / Xcode&lt;/strong&gt;: Because CleanBit runs inside Apple's App Sandbox without root access, it cannot delete system-level Simulator runtime disk images under &lt;code&gt;/Library/Developer/CoreSimulator&lt;/code&gt;, and it does not delete entire Simulator devices (so it won't wipe your test app state). Use &lt;code&gt;xcrun simctl runtime delete&lt;/code&gt; and &lt;code&gt;xcrun simctl delete unavailable&lt;/code&gt; above for those.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h9sim52k56b5dx6uc0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h9sim52k56b5dx6uc0.webp" alt="CleanBit Smart Scan showing Xcode DerivedData, Old iOS DeviceSupport, and Simulator caches with impact notes" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Scanning and your first 2 cleans are free, with optional monthly ($4.99), yearly ($19.99), or one-time lifetime ($29.99) upgrades via the &lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Mac App Store&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is it safe to delete &lt;code&gt;~/Library/Developer/Xcode/iOS DeviceSupport&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;Yes, especially older iOS versions you no longer debug on physical devices. Deleting a version only removes cached debug symbols for that OS build; if you plug in a device running that version later, Xcode copies the symbols again. Keeping the 1–2 most recent versions avoids waiting on your daily test device.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does deleting Simulator caches remove my installed test apps or Core Data / UserDefaults?
&lt;/h3&gt;

&lt;p&gt;Not if you only clear cache paths (&lt;code&gt;Library/Caches&lt;/code&gt;, diagnostic logs, and &lt;code&gt;CoreSimulator/Caches&lt;/code&gt;) on shut-down simulators. Running &lt;code&gt;xcrun simctl erase&lt;/code&gt; or &lt;code&gt;xcrun simctl delete&lt;/code&gt;, however, wipes the entire simulated device including installed apps and local app data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why did deleting &lt;code&gt;CoreSimulator/Devices&lt;/code&gt; not free the 15 GB of iOS runtimes I saw in Storage Settings?
&lt;/h3&gt;

&lt;p&gt;Simulator &lt;strong&gt;devices&lt;/strong&gt; (in &lt;code&gt;~/Library/Developer/CoreSimulator/Devices&lt;/code&gt;) store per-device data and caches, whereas Simulator &lt;strong&gt;runtimes&lt;/strong&gt; (the OS images themselves) are managed separately in &lt;code&gt;/Library/Developer/CoreSimulator&lt;/code&gt; and Xcode Components. Run &lt;code&gt;xcrun simctl runtime list&lt;/code&gt; and &lt;code&gt;xcrun simctl runtime delete &amp;lt;UUID&amp;gt;&lt;/code&gt; (or open &lt;strong&gt;Xcode → Settings → Components&lt;/strong&gt;) to reclaim runtime disk images.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can a sandboxed Mac App Store cleaner delete Xcode Simulator runtimes?
&lt;/h3&gt;

&lt;p&gt;No. Simulator runtime disk images live in system-managed locations outside your user home folder, which Apple's App Sandbox cannot modify. A sandboxed cleaner like CleanBit can safely clean &lt;code&gt;DerivedData&lt;/code&gt;, old &lt;code&gt;DeviceSupport&lt;/code&gt; folders, SwiftUI Preview data, and caches inside shut-down simulator devices in your home folder, while runtime images should be removed with &lt;code&gt;xcrun simctl runtime delete&lt;/code&gt; or Xcode Settings.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://getcleanbit.app/guides/ios-devicesupport-and-simulators-disk-space-mac/" rel="noopener noreferrer"&gt;getcleanbit.app&lt;/a&gt;. Written by the CleanBit developer with AI assistance; all measurements were taken on a real developer Mac.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>developers</category>
      <category>xcode</category>
      <category>ios</category>
      <category>macos</category>
    </item>
    <item>
      <title>Claude Code, Cursor and Codex Eating Disk Space on Your Mac? Here's Where It Goes</title>
      <dc:creator>Hard Work</dc:creator>
      <pubDate>Sun, 22 Nov 2026 00:14:49 +0000</pubDate>
      <link>https://dev.to/fastlog/claude-code-cursor-and-codex-eating-disk-space-on-your-mac-heres-where-it-goes-51a7</link>
      <guid>https://dev.to/fastlog/claude-code-cursor-and-codex-eating-disk-space-on-your-mac-heres-where-it-goes-51a7</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://getcleanbit.app/guides/claude-code-cursor-codex-disk-space-mac/" rel="noopener noreferrer"&gt;getcleanbit.app&lt;/a&gt;. Written by the CleanBit developer with AI assistance. All measurements were taken on a real developer Mac.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI coding agents eat disk space on macOS in four places: conversation transcripts (often bloated with base64 screenshots), leftover binary versions and Electron caches, duplicated build folders inside &lt;code&gt;git worktree&lt;/code&gt; sandboxes, and local model weights.&lt;/strong&gt; If you run Claude Code, Codex, or Cursor daily, it is common to lose tens of gigabytes within a few weeks—even if your own source code is tiny.&lt;/p&gt;

&lt;p&gt;On one developer Mac we measured (read-only &lt;code&gt;du&lt;/code&gt; across the home folder), AI tooling directories alone held &lt;strong&gt;&lt;code&gt;~/.claude&lt;/code&gt; at 1.9 GB&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;~/.local/share/claude&lt;/code&gt; at 902 MB&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;~/.codex&lt;/code&gt; at 5.2 GB&lt;/strong&gt;, and &lt;strong&gt;&lt;code&gt;~/.cache/huggingface&lt;/code&gt; at 17.0 GB&lt;/strong&gt;—on top of &lt;strong&gt;304 &lt;code&gt;node_modules&lt;/code&gt; folders occupying 66.3 GB&lt;/strong&gt;, 8 &lt;code&gt;.venv&lt;/code&gt; folders (5.1 GB), and 7 &lt;code&gt;.build&lt;/code&gt; folders (2.9 GB). Heavy agent users report even steeper spikes: in one &lt;a href="https://www.reddit.com/r/ClaudeCode/comments/1xzgmo3/" rel="noopener noreferrer"&gt;r/ClaudeCode discussion&lt;/a&gt; on a 256 GB Mac, &lt;code&gt;~/.claude/projects&lt;/code&gt; reached &lt;strong&gt;11 GB&lt;/strong&gt; (with a single 262 MB &lt;code&gt;.jsonl&lt;/code&gt; session full of embedded screenshots), &lt;code&gt;~/.codex&lt;/code&gt; grew by roughly &lt;strong&gt;650 MB per day&lt;/strong&gt;, &lt;code&gt;/private/tmp&lt;/code&gt; accumulated 26 DerivedData copies (&lt;strong&gt;6.5 GB&lt;/strong&gt;), and another developer's agent worktrees grew a workspace to &lt;strong&gt;95 GB&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Run a read-only audit first
&lt;/h2&gt;

&lt;p&gt;Before deleting anything, measure where the gigabytes actually sit on your Mac. The command below is read-only and prints sizes for Claude Code, Codex, Cursor, local model caches, and &lt;code&gt;/private/tmp&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;du -sh \
  ~/.claude \
  ~/.claude/projects \
  ~/.local/share/claude/versions \
  ~/Library/Application\ Support/Claude \
  ~/.codex \
  ~/.codex/sessions \
  ~/.codex/worktrees \
  ~/.claude/worktrees \
  ~/Library/Application\ Support/Cursor \
  ~/.cursor \
  ~/.cache/huggingface \
  ~/.ollama/models \
  ~/.lmstudio/models \
  /private/tmp 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To see your largest individual Claude Code or Codex session logs (&lt;code&gt;.jsonl&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find ~/.claude/projects ~/.codex/sessions ~/.codex/archived_sessions \
  -name &lt;span class="s1"&gt;'*.jsonl'&lt;/span&gt; -exec du -h &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; + 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; sort -h &lt;span class="o"&gt;|&lt;/span&gt; tail -20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;code&gt;du&lt;/code&gt; reports total disk usage for a directory, not how much is safe to delete. Never delete an entire &lt;code&gt;~/.claude&lt;/code&gt;, &lt;code&gt;~/.codex&lt;/code&gt;, or &lt;code&gt;~/Library/Application Support/Cursor&lt;/code&gt; folder blindly—settings, auth tokens, project memory, and extensions live beside disposable caches.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  2. Where Claude Code, Codex, and Cursor store data
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;th&gt;What lives inside&lt;/th&gt;
&lt;th&gt;Safe to clean?&lt;/th&gt;
&lt;th&gt;Manual cleanup&lt;/th&gt;
&lt;th&gt;CleanBit coverage&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/.local/share/claude/versions&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Previous Claude Code binaries kept after updates&lt;/td&gt;
&lt;td&gt;Yes (keep active version)&lt;/td&gt;
&lt;td&gt;Keep the target of &lt;code&gt;~/.local/bin/claude&lt;/code&gt;, remove older versions&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Recommended&lt;/strong&gt; (&lt;code&gt;Old Claude Code Versions&lt;/code&gt;; keeps active symlink + newest version)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/.claude/projects/*/*.jsonl&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Claude Code conversation transcripts &amp;amp; tool outputs&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Review&lt;/strong&gt; (deletes chat history)&lt;/td&gt;
&lt;td&gt;Delete old &lt;code&gt;.jsonl&lt;/code&gt; files by age; avoid touching &lt;code&gt;memory/&lt;/code&gt; subdirectories&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;AI Sessions&lt;/strong&gt; (scans top-level &lt;code&gt;.jsonl&lt;/code&gt; only, skips &lt;code&gt;memory/&lt;/code&gt;, moves to Trash)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;~/Library/Application Support/Claude&lt;/code&gt; caches &amp;amp; &lt;code&gt;~/Library/Caches/com.anthropic.claudefordesktop&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Claude Desktop Electron web/GPU caches &amp;amp; update downloads&lt;/td&gt;
&lt;td&gt;Yes (quit Claude first)&lt;/td&gt;
&lt;td&gt;Quit Claude Desktop, clear &lt;code&gt;Cache&lt;/code&gt;, &lt;code&gt;Code Cache&lt;/code&gt;, &lt;code&gt;GPUCache&lt;/code&gt;, and &lt;code&gt;~/Library/Caches/com.anthropic.claudefordesktop&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Recommended&lt;/strong&gt; (blocked while Claude Desktop is running)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;~/.codex/sessions&lt;/code&gt; &amp;amp; &lt;code&gt;~/.codex/archived_sessions&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Codex CLI/App JSONL session logs&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Review&lt;/strong&gt; (deletes chat history)&lt;/td&gt;
&lt;td&gt;Delete old &lt;code&gt;.jsonl&lt;/code&gt; files by modified date&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;AI Sessions&lt;/strong&gt; (filters by age, moves to Trash)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;~/.claude/worktrees&lt;/code&gt; &amp;amp; &lt;code&gt;~/.codex/worktrees&lt;/code&gt; (and repo worktrees)&lt;/td&gt;
&lt;td&gt;Isolated &lt;code&gt;git worktree&lt;/code&gt; checkouts, each with its own &lt;code&gt;node_modules&lt;/code&gt;, &lt;code&gt;target&lt;/code&gt;, or &lt;code&gt;.build&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Review&lt;/strong&gt; (check unmerged work first)&lt;/td&gt;
&lt;td&gt;Run &lt;code&gt;git worktree list&lt;/code&gt; / &lt;code&gt;git worktree remove&lt;/code&gt; or delete build folders inside idle worktrees&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Build Artifacts&lt;/strong&gt; scans &lt;code&gt;~/.claude/worktrees&lt;/code&gt;, &lt;code&gt;~/.codex/worktrees&lt;/code&gt;, and visible home folders (skips Git-tracked files; moves build folders to Trash, never deletes source)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;~/Library/Application Support/Cursor&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cursor Electron caches, &lt;code&gt;workspaceStorage&lt;/code&gt;, and &lt;code&gt;globalStorage/state.vscdb&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Caches only&lt;/strong&gt; (keep settings/extensions)&lt;/td&gt;
&lt;td&gt;Quit Cursor; clear &lt;code&gt;Cache&lt;/code&gt;, &lt;code&gt;CachedData&lt;/code&gt;, &lt;code&gt;Code Cache&lt;/code&gt;, &lt;code&gt;GPUCache&lt;/code&gt;, &lt;code&gt;DawnGraphiteCache&lt;/code&gt;; audit old &lt;code&gt;workspaceStorage&lt;/code&gt; folders carefully&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Manual only&lt;/strong&gt; (CleanBit does not include a dedicated Cursor cleaner rule)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;~/.cache/huggingface&lt;/code&gt;, &lt;code&gt;~/.ollama/models&lt;/code&gt;, &lt;code&gt;~/.lmstudio/models&lt;/code&gt;, &lt;code&gt;~/.cache/torch&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Local LLM &amp;amp; ML model weights&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Manual / intentional&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Use &lt;code&gt;ollama rm &amp;lt;model&amp;gt;&lt;/code&gt;, LM Studio UI, or &lt;code&gt;huggingface-cli delete-cache&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Info Only&lt;/strong&gt; (shows size; never deleted by CleanBit)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/private/tmp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Temporary build copies (e.g., agent-created Xcode DerivedData)&lt;/td&gt;
&lt;td&gt;Usually yes after reboot/quitting tools&lt;/td&gt;
&lt;td&gt;Reboot macOS or inspect before removing specific temporary build folders&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Outside sandbox&lt;/strong&gt; (CleanBit cannot read or clean &lt;code&gt;/private/tmp&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  3. Manual cleanup commands (step by step)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Clean old Claude Code versions (keeping the active binary)
&lt;/h3&gt;

&lt;p&gt;Check which binary &lt;code&gt;~/.local/bin/claude&lt;/code&gt; currently points to before removing older folders in &lt;code&gt;~/.local/share/claude/versions&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ls -la ~/.local/bin/claude
ls -lh ~/.local/share/claude/versions
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remove only older version entries that are &lt;strong&gt;not&lt;/strong&gt; the symlink target or the latest version.&lt;/p&gt;

&lt;h3&gt;
  
  
  Review old Claude Code and Codex session transcripts
&lt;/h3&gt;

&lt;p&gt;List &lt;code&gt;.jsonl&lt;/code&gt; transcripts older than 30 days without deleting anything:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find ~/.claude/projects -maxdepth 2 -name &lt;span class="s1"&gt;'*.jsonl'&lt;/span&gt; -mtime +30 -exec du -h &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; + 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; sort -h
find ~/.codex/sessions ~/.codex/archived_sessions -name &lt;span class="s1"&gt;'*.jsonl'&lt;/span&gt; -mtime +30 -exec du -h &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; + 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; sort -h
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note the &lt;code&gt;-maxdepth 2&lt;/code&gt; on &lt;code&gt;~/.claude/projects&lt;/code&gt;: this targets session &lt;code&gt;.jsonl&lt;/code&gt; files directly inside each project folder and leaves &lt;code&gt;memory/&lt;/code&gt; files untouched. Once you have checked the list, move unwanted transcripts to the Trash or remove the specific files you no longer need to resume.&lt;/p&gt;

&lt;h3&gt;
  
  
  Audit Cursor storage manually
&lt;/h3&gt;

&lt;p&gt;CleanBit does not have a dedicated Cursor rule, so handle Cursor manually after &lt;strong&gt;quitting Cursor completely&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Check Cursor's largest subfolders first (read-only)&lt;/span&gt;
du -sh ~/Library/Application\ Support/Cursor/* 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; sort -h &lt;span class="o"&gt;|&lt;/span&gt; tail -15
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Subfolders like &lt;code&gt;Cache&lt;/code&gt;, &lt;code&gt;CachedData&lt;/code&gt;, &lt;code&gt;Code Cache&lt;/code&gt;, &lt;code&gt;GPUCache&lt;/code&gt;, &lt;code&gt;DawnGraphiteCache&lt;/code&gt;, and &lt;code&gt;DawnWebGPUCache&lt;/code&gt; inside &lt;code&gt;~/Library/Application Support/Cursor/&lt;/code&gt; are Chromium/Electron caches that Cursor rebuilds on next launch. Be careful with &lt;code&gt;User/&lt;/code&gt; (your settings and keybindings), &lt;code&gt;globalStorage/&lt;/code&gt; (chat history and extension state), and &lt;code&gt;workspaceStorage/&lt;/code&gt; (per-workspace chat and index state).&lt;/p&gt;

&lt;h3&gt;
  
  
  Find forgotten &lt;code&gt;git worktree&lt;/code&gt; checkouts and their build folders
&lt;/h3&gt;

&lt;p&gt;When an AI coding agent spawns a separate &lt;code&gt;git worktree&lt;/code&gt; per task, each checkout can install its own &lt;code&gt;node_modules&lt;/code&gt;, Rust &lt;code&gt;target&lt;/code&gt;, or Swift &lt;code&gt;.build&lt;/code&gt; directory. Check active worktrees inside any repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Repos/your-project
git worktree list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a worktree branch is already merged and has no uncommitted changes, remove it cleanly through Git rather than &lt;code&gt;rm -rf&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git worktree remove /path/to/old-worktree
git worktree prune
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To see all &lt;code&gt;node_modules&lt;/code&gt; or Rust &lt;code&gt;target&lt;/code&gt; folders piling up across your workspace (including worktrees), see our dedicated guides on &lt;a href="https://getcleanbit.app/guides/how-to-find-and-delete-old-node-modules-on-mac/" rel="noopener noreferrer"&gt;finding and deleting old &lt;code&gt;node_modules&lt;/code&gt; folders on a Mac&lt;/a&gt;, &lt;a href="https://getcleanbit.app/guides/is-xcode-deriveddata-safe-to-delete/" rel="noopener noreferrer"&gt;cleaning Xcode &lt;code&gt;DerivedData&lt;/code&gt; safely&lt;/a&gt;, and &lt;a href="https://getcleanbit.app/guides/ios-devicesupport-and-simulators-disk-space-mac/" rel="noopener noreferrer"&gt;reclaiming space from &lt;code&gt;iOS DeviceSupport&lt;/code&gt; and Xcode Simulators&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; &lt;strong&gt;Be cautious about asking an AI coding agent to free disk space for you.&lt;/strong&gt; In the same &lt;code&gt;r/ClaudeCode&lt;/code&gt; thread mentioned above, a user reported that the agent misidentified a folder containing source code as build artifacts and deleted it. Always inspect paths yourself and prefer moving project directories to the Trash over running blind &lt;code&gt;rm -rf&lt;/code&gt; commands.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Check &lt;code&gt;/private/tmp&lt;/code&gt; and local AI models
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;/private/tmp&lt;/code&gt;&lt;/strong&gt;: Some agent runs redirect temporary build outputs (like Xcode &lt;code&gt;DerivedData&lt;/code&gt; or test sandboxes) into &lt;code&gt;/private/tmp&lt;/code&gt;. Because &lt;code&gt;/private/tmp&lt;/code&gt; sits outside your home folder, sandboxed Mac App Store apps cannot inspect or clean it. A normal macOS restart clears stale &lt;code&gt;/private/tmp&lt;/code&gt; items, or you can inspect &lt;code&gt;/private/tmp&lt;/code&gt; in Terminal when no builds are running.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local models&lt;/strong&gt;: Reclaim Ollama models with &lt;code&gt;ollama list&lt;/code&gt; followed by &lt;code&gt;ollama rm &amp;lt;model&amp;gt;&lt;/code&gt;. For Hugging Face caches (&lt;code&gt;~/.cache/huggingface/hub&lt;/code&gt;), use &lt;code&gt;hf cache scan&lt;/code&gt; / &lt;code&gt;huggingface-cli delete-cache&lt;/code&gt; so you don't accidentally re-download a 15 GB model you still use.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. What CleanBit covers (and what it deliberately leaves alone)
&lt;/h2&gt;

&lt;p&gt;I'm the developer of &lt;strong&gt;CleanBit&lt;/strong&gt;, a sandboxed Mac App Store disk space cleaner for macOS 15+. Because AI coding directories mix disposable caches with irreplaceable chat history and source code, CleanBit splits them by risk rather than offering a single blind button:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Smart Scan (Recommended)&lt;/strong&gt;: Finds &lt;strong&gt;Old Claude Code Versions&lt;/strong&gt; (&lt;code&gt;~/.local/share/claude/versions&lt;/code&gt;, automatically preserving the active symlink target and newest version) and &lt;strong&gt;Claude Desktop Caches&lt;/strong&gt; (blocked while Claude Desktop is running). On the developer Mac we measured, the engine found 945.9 MB of Claude Code versions (598.5 MB safely cleanable) and 57.5 MB of Claude Desktop cache.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Sessions (Review, moved to Trash)&lt;/strong&gt;: Lets you pick an age threshold (such as older than 30 days) and inspect &lt;code&gt;.jsonl&lt;/code&gt; transcripts in &lt;code&gt;~/.claude/projects&lt;/code&gt; (without entering &lt;code&gt;memory/&lt;/code&gt;), &lt;code&gt;~/.codex/sessions&lt;/code&gt;, and &lt;code&gt;~/.codex/archived_sessions&lt;/code&gt;. Nothing is pre-selected, and removed transcripts move to the Trash.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build Artifacts (Review, moved to Trash)&lt;/strong&gt;: Scans your visible home folders plus &lt;code&gt;~/.claude/worktrees&lt;/code&gt; and &lt;code&gt;~/.codex/worktrees&lt;/code&gt; for &lt;code&gt;node_modules&lt;/code&gt;, &lt;code&gt;target&lt;/code&gt;, &lt;code&gt;.build&lt;/code&gt;, &lt;code&gt;.venv&lt;/code&gt;, &lt;code&gt;Pods&lt;/code&gt;, and more. CleanBit parses &lt;code&gt;.git&lt;/code&gt; files (including &lt;code&gt;gitdir:&lt;/code&gt; pointers used by git worktrees) to skip Git-tracked directories, and moves selected build folders to the Trash without touching your source code or the worktree itself. (Worktrees placed inside hidden subfolders such as &lt;code&gt;&amp;lt;repo&amp;gt;/.claude/worktrees&lt;/code&gt; are skipped during recursive traversal—use &lt;code&gt;git worktree list&lt;/code&gt; for those.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Info Only (never deleted)&lt;/strong&gt;: Local model caches for Hugging Face, Ollama, LM Studio, and PyTorch are shown for visibility only so you know where those gigabytes went.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outside the App Sandbox&lt;/strong&gt;: CleanBit does not require root privileges or a background daemon, so it cannot touch &lt;code&gt;/private/tmp&lt;/code&gt;, APFS local snapshots, or system caches, and it currently does not include a dedicated Cursor rule.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you'd like to inspect your own Mac visually, scanning and your first 2 cleans are free on the &lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Mac App Store&lt;/a&gt; (macOS 15+), or you can read the full guide on &lt;a href="https://getcleanbit.app/guides/claude-code-cursor-codex-disk-space-mac/" rel="noopener noreferrer"&gt;getcleanbit.app&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Will deleting &lt;code&gt;~/.claude/projects/*.jsonl&lt;/code&gt; erase my Claude Code &lt;code&gt;CLAUDE.md&lt;/code&gt; or project memory?
&lt;/h3&gt;

&lt;p&gt;No, as long as you only delete the &lt;code&gt;.jsonl&lt;/code&gt; session transcript files at the top level of each project folder under &lt;code&gt;~/.claude/projects&lt;/code&gt; and do not delete the &lt;code&gt;memory/&lt;/code&gt; subdirectory or &lt;code&gt;CLAUDE.md&lt;/code&gt; files inside your repositories. Removing a &lt;code&gt;.jsonl&lt;/code&gt; transcript only prevents resuming that specific past conversation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why did my Mac fill up so fast while using Claude Code or Codex?
&lt;/h3&gt;

&lt;p&gt;Three factors compound quickly: screenshots pasted into agent chats get stored as base64 data inside &lt;code&gt;.jsonl&lt;/code&gt; transcripts; each &lt;code&gt;git worktree&lt;/code&gt; created for parallel tasks often installs its own full copy of &lt;code&gt;node_modules&lt;/code&gt;, Rust &lt;code&gt;target&lt;/code&gt;, or Swift &lt;code&gt;.build&lt;/code&gt;; and background tool runs can accumulate package caches (&lt;code&gt;npm&lt;/code&gt;, &lt;code&gt;uv&lt;/code&gt;, &lt;code&gt;Cargo&lt;/code&gt;) or temporary Xcode builds.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does CleanBit clean Cursor caches or &lt;code&gt;/private/tmp&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;No. CleanBit currently does not have a dedicated Cursor cleaner rule, and because CleanBit runs inside Apple's Mac App Store App Sandbox without root access, it cannot read or delete files in &lt;code&gt;/private/tmp&lt;/code&gt; outside your home folder. Use the manual commands in Section 3 for both.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can CleanBit delete my local Ollama or Hugging Face models by mistake?
&lt;/h3&gt;

&lt;p&gt;No. Local model directories (&lt;code&gt;~/.ollama/models&lt;/code&gt;, &lt;code&gt;~/.lmstudio/models&lt;/code&gt;, &lt;code&gt;~/.cache/huggingface/hub&lt;/code&gt;, and &lt;code&gt;~/.cache/torch&lt;/code&gt;) are marked &lt;strong&gt;Info Only&lt;/strong&gt; in CleanBit—they are listed so you can see their size, and cannot be selected for deletion.&lt;/p&gt;

</description>
      <category>macos</category>
      <category>claudecode</category>
      <category>cursor</category>
      <category>developers</category>
    </item>
    <item>
      <title>How to Find and Delete Old node_modules Folders on a Mac</title>
      <dc:creator>Hard Work</dc:creator>
      <pubDate>Sat, 21 Nov 2026 10:10:39 +0000</pubDate>
      <link>https://dev.to/fastlog/how-to-find-and-delete-old-nodemodules-folders-on-a-mac-4427</link>
      <guid>https://dev.to/fastlog/how-to-find-and-delete-old-nodemodules-folders-on-a-mac-4427</guid>
      <description>&lt;p&gt;&lt;strong&gt;Yes—you can safely delete &lt;code&gt;node_modules&lt;/code&gt; folders in inactive projects on macOS.&lt;/strong&gt; Every package inside &lt;code&gt;node_modules&lt;/code&gt; can be reinstalled later with &lt;code&gt;npm install&lt;/code&gt;, &lt;code&gt;yarn&lt;/code&gt;, &lt;code&gt;pnpm install&lt;/code&gt;, or &lt;code&gt;bun install&lt;/code&gt; as long as your &lt;code&gt;package.json&lt;/code&gt; and lockfile are intact.&lt;/p&gt;

&lt;p&gt;If you build side projects or use AI coding tools like Claude Code, Cursor, or Codex, &lt;code&gt;node_modules&lt;/code&gt; folders pile up quickly across dozens of folders and &lt;code&gt;git worktree&lt;/code&gt; checkouts you no longer open (for the full breakdown of agent sessions, worktrees, and model caches, see our &lt;a href="https://getcleanbit.app/guides/claude-code-cursor-codex-disk-space-mac/" rel="noopener noreferrer"&gt;Claude Code, Cursor, and Codex disk space guide&lt;/a&gt;). On one developer Mac we measured (macOS home folder, excluding &lt;code&gt;~/Library&lt;/code&gt;), there were &lt;strong&gt;304 &lt;code&gt;node_modules&lt;/code&gt; folders occupying 66.3 GB&lt;/strong&gt; in total—alongside 8 &lt;code&gt;.venv&lt;/code&gt; folders (5.1 GB) and 7 &lt;code&gt;.build&lt;/code&gt; folders (2.9 GB). Every machine varies widely, so start by measuring your own.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Originally published at &lt;a href="https://getcleanbit.app/guides/how-to-find-and-delete-old-node-modules-on-mac/" rel="noopener noreferrer"&gt;getcleanbit.app/guides/how-to-find-and-delete-old-node-modules-on-mac/&lt;/a&gt;.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Measure how much space &lt;code&gt;node_modules&lt;/code&gt; takes on your Mac
&lt;/h2&gt;

&lt;p&gt;Before deleting anything, run a read-only command to list the largest top-level &lt;code&gt;node_modules&lt;/code&gt; directories inside your home folder. Using &lt;code&gt;-prune&lt;/code&gt; is important because it stops &lt;code&gt;find&lt;/code&gt; from descending into nested &lt;code&gt;node_modules&lt;/code&gt; directories and double-counting them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find ~ \&lt;span class="o"&gt;(&lt;/span&gt; -path ~/Library -o -path ~/.Trash -o -name .git \&lt;span class="o"&gt;)&lt;/span&gt; -prune -o \
  -type d -name node_modules -prune -exec du -sh &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; + 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null \
  &lt;span class="o"&gt;|&lt;/span&gt; sort -h &lt;span class="o"&gt;|&lt;/span&gt; tail -25
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To count how many &lt;code&gt;node_modules&lt;/code&gt; directories exist in your workspace folder (for example &lt;code&gt;~/Projects&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find ~/Projects -name node_modules -type d -prune &lt;span class="o"&gt;|&lt;/span&gt; wc -l
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Check when each project was last touched
&lt;/h2&gt;

&lt;p&gt;Deleting &lt;code&gt;node_modules&lt;/code&gt; in a project you are actively running will break your dev server until you reinstall. Filter by projects whose &lt;code&gt;node_modules&lt;/code&gt; hasn't been modified in more than 60 days:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find ~/Projects -name node_modules -type d -prune -mtime +60 -exec du -sh &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; + 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; sort -h
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; Always inspect the printed list before running any delete command. Never run recursive deletion directly on &lt;code&gt;~&lt;/code&gt; without excluding &lt;code&gt;~/Library&lt;/code&gt; and verifying no repository accidentally committed &lt;code&gt;node_modules&lt;/code&gt; to Git.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  3. When you should NOT delete &lt;code&gt;node_modules&lt;/code&gt; blindly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Active projects&lt;/strong&gt;: Any project currently running a dev server, watcher, or build process.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git-tracked &lt;code&gt;node_modules&lt;/code&gt;&lt;/strong&gt;: Rare, but some legacy repositories commit vendored dependencies into Git. Check with &lt;code&gt;git ls-files node_modules | head&lt;/code&gt; first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Projects using &lt;code&gt;pnpm&lt;/code&gt;&lt;/strong&gt;: &lt;code&gt;pnpm&lt;/code&gt; hard-links files from its shared store (&lt;code&gt;~/Library/pnpm&lt;/code&gt;) into each project's &lt;code&gt;node_modules&lt;/code&gt;. Deleting one project's &lt;code&gt;node_modules&lt;/code&gt; may not reclaim the full size shown by &lt;code&gt;du&lt;/code&gt; until you run &lt;code&gt;pnpm store prune&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline travel&lt;/strong&gt;: If you need to work on a project without internet access, keep its &lt;code&gt;node_modules&lt;/code&gt; until you're back online.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Delete old &lt;code&gt;node_modules&lt;/code&gt; safely from Terminal
&lt;/h2&gt;

&lt;p&gt;Instead of permanently destroying directories with &lt;code&gt;rm -rf&lt;/code&gt;, a safer habit on macOS is moving selected folders to the Trash or using &lt;code&gt;npx npkill&lt;/code&gt; interactively inside a specific projects directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Option A: Inspect and delete interactively inside a single folder&lt;/span&gt;
&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Projects
npx npkill

&lt;span class="c"&gt;# Option B: Reclaim unreferenced packages from the pnpm store&lt;/span&gt;
pnpm store prune
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you prefer deleting a single specific folder once you have verified the path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rm -rf ~/Projects/old-demo/node_modules
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Inspect and clean visually with CleanBit
&lt;/h2&gt;

&lt;p&gt;I'm the developer of &lt;strong&gt;&lt;a href="https://getcleanbit.app/" rel="noopener noreferrer"&gt;CleanBit&lt;/a&gt;&lt;/strong&gt; (&lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Mac App Store&lt;/a&gt;), a sandboxed Mac App Store disk space cleaner for macOS 15+. If you don't want to write &lt;code&gt;find&lt;/code&gt; commands or worry about wiping something Git tracks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Build Artifacts&lt;/strong&gt; scans &lt;code&gt;node_modules&lt;/code&gt;, &lt;code&gt;target&lt;/code&gt;, &lt;code&gt;.build&lt;/code&gt;, &lt;code&gt;.venv&lt;/code&gt;, and &lt;code&gt;Pods&lt;/code&gt; across the folders you grant and shows &lt;strong&gt;when each project was last modified&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Anything tracked by Git is automatically skipped, and recently modified folders are flagged as in use.&lt;/li&gt;
&lt;li&gt;Project build folders are categorized as &lt;strong&gt;Review&lt;/strong&gt; (never pre-selected) and are always &lt;strong&gt;moved to the Trash&lt;/strong&gt;, so you can put them back if you need to.&lt;/li&gt;
&lt;li&gt;CleanBit also shows your &lt;code&gt;pnpm&lt;/code&gt; store as &lt;strong&gt;Info Only&lt;/strong&gt; (never deleted directly) and reminds you to use &lt;code&gt;pnpm store prune&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8cwrue8tmnbssm8rigvz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8cwrue8tmnbssm8rigvz.webp" alt="CleanBit Build Artifacts view showing project folders, last modified dates, and Git-safe selection" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is it safe to delete &lt;code&gt;node_modules&lt;/code&gt; on a Mac?
&lt;/h3&gt;

&lt;p&gt;Yes, as long as the project is not currently running and its &lt;code&gt;package.json&lt;/code&gt; (and lockfile) is intact. You will simply need to run &lt;code&gt;npm install&lt;/code&gt; (or your package manager's install command) the next time you work on that project.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why didn't my free disk space increase immediately after deleting &lt;code&gt;node_modules&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;Two common reasons: if you moved folders to the Trash, space isn't reclaimed until you empty the Trash; and if the project used &lt;code&gt;pnpm&lt;/code&gt;, packages are hard-linked to the shared store—run &lt;code&gt;pnpm store prune&lt;/code&gt; to free unreferenced packages. macOS may also hold purgeable space or APFS local snapshots temporarily.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does deleting &lt;code&gt;node_modules&lt;/code&gt; affect global npm packages or Node.js itself?
&lt;/h3&gt;

&lt;p&gt;No. Project-level &lt;code&gt;node_modules&lt;/code&gt; folders only contain dependencies for that specific project. Your Node.js installation, global CLI tools, and source code remain untouched.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: Written by the CleanBit developer with AI assistance. All measurements were taken on a real developer Mac. Read the original guide at &lt;a href="https://getcleanbit.app/guides/how-to-find-and-delete-old-node-modules-on-mac/" rel="noopener noreferrer"&gt;getcleanbit.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>javascript</category>
      <category>macos</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Is Xcode DerivedData Safe to Delete? What Happens and How to Clean It</title>
      <dc:creator>Hard Work</dc:creator>
      <pubDate>Sat, 21 Nov 2026 10:10:04 +0000</pubDate>
      <link>https://dev.to/fastlog/is-xcode-deriveddata-safe-to-delete-what-happens-and-how-to-clean-it-14o0</link>
      <guid>https://dev.to/fastlog/is-xcode-deriveddata-safe-to-delete-what-happens-and-how-to-clean-it-14o0</guid>
      <description>&lt;p&gt;&lt;strong&gt;Yes—Xcode's &lt;code&gt;DerivedData&lt;/code&gt; folder is safe to delete.&lt;/strong&gt; Xcode automatically regenerates everything inside it the next time you open and build a project. The only trade-off is that your next build and index for each project will start from scratch and take longer.&lt;/p&gt;

&lt;p&gt;On one developer Mac we measured, &lt;code&gt;~/Library/Developer/Xcode/DerivedData&lt;/code&gt; occupied &lt;strong&gt;15.3 GB&lt;/strong&gt; (and adjacent Xcode storage was even larger: &lt;strong&gt;24.1 GB&lt;/strong&gt; in &lt;code&gt;iOS DeviceSupport&lt;/code&gt; and &lt;strong&gt;43.0 GB&lt;/strong&gt; in &lt;code&gt;CoreSimulator/Devices&lt;/code&gt;). Your numbers will differ depending on how many projects and iOS SDKs you work with.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Originally published at &lt;a href="https://getcleanbit.app/guides/is-xcode-deriveddata-safe-to-delete/" rel="noopener noreferrer"&gt;getcleanbit.app/guides/is-xcode-deriveddata-safe-to-delete/&lt;/a&gt;.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is inside &lt;code&gt;~/Library/Developer/Xcode/DerivedData&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;Whenever you open a project or workspace in Xcode, it creates a subfolder inside &lt;code&gt;DerivedData&lt;/code&gt; containing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Build intermediates and compiled binaries&lt;/strong&gt; (&lt;code&gt;Build/Intermediates.noindex&lt;/code&gt;, &lt;code&gt;Build/Products&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code completion and navigation indexes&lt;/strong&gt; (&lt;code&gt;Index.noindex&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build and test logs&lt;/strong&gt; (&lt;code&gt;Logs&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resolved Swift Package checkouts&lt;/strong&gt; (&lt;code&gt;SourcePackages&lt;/code&gt;) when using SwiftPM inside Xcode&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of your source code lives in &lt;code&gt;DerivedData&lt;/code&gt;. It is purely generated build output and cache data.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should you quit Xcode before deleting it?
&lt;/h2&gt;

&lt;p&gt;Always &lt;strong&gt;quit Xcode first&lt;/strong&gt; before deleting &lt;code&gt;DerivedData&lt;/code&gt;. Removing files while Xcode is actively indexing or compiling can cause failed builds or stale editor warnings until you restart Xcode.&lt;/p&gt;

&lt;p&gt;Also keep in mind: if a project pulls Swift Packages from the internet, the next open after clearing &lt;code&gt;DerivedData&lt;/code&gt; will re-fetch or re-resolve those packages, so avoid wiping it right before boarding a flight without Wi-Fi.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check and delete &lt;code&gt;DerivedData&lt;/code&gt; manually
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Check how much space Xcode folders occupy (read-only)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;du -sh \
  ~/Library/Developer/Xcode/DerivedData \
  ~/Library/Developer/Xcode/iOS\ DeviceSupport \
  ~/Library/Developer/CoreSimulator/Devices \
  ~/Library/Developer/Xcode/Archives 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Option 1: Remove via Finder
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Quit Xcode.&lt;/li&gt;
&lt;li&gt;In Finder, press &lt;code&gt;Shift + Command + G&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Paste &lt;code&gt;~/Library/Developer/Xcode/DerivedData&lt;/code&gt; and press Return.&lt;/li&gt;
&lt;li&gt;Select the project folders you no longer need (or everything inside &lt;code&gt;DerivedData&lt;/code&gt;) and move them to the Trash, then empty the Trash.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Option 2: Remove via Terminal
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Quit Xcode first, then clear the contents of DerivedData&lt;/span&gt;
rm -rf ~/Library/Developer/Xcode/DerivedData/*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Option 3: Check other Xcode folders carefully
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Folder&lt;/th&gt;
&lt;th&gt;Safe to delete?&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DerivedData&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yes (rebuilt automatically)&lt;/td&gt;
&lt;td&gt;Next build &amp;amp; index takes longer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;iOS DeviceSupport&lt;/code&gt; (older versions)&lt;/td&gt;
&lt;td&gt;Usually yes&lt;/td&gt;
&lt;td&gt;Xcode re-copies symbols if you reconnect an older iOS device&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;CoreSimulator/Caches&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yes (when simulators are shut down)&lt;/td&gt;
&lt;td&gt;Simulator regenerates caches as needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Xcode/Archives&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Review carefully&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Contains &lt;code&gt;.xcarchive&lt;/code&gt; builds &amp;amp; dSYMs used to symbolicate App Store crash logs—do not delete blindly&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;DerivedData&lt;/code&gt; is only one piece of developer storage. Before deleting &lt;code&gt;Archives&lt;/code&gt;, make sure you no longer need the dSYM files for shipped app versions. If you also use AI coding agents or JavaScript toolchains, see our guides on &lt;a href="https://getcleanbit.app/guides/claude-code-cursor-codex-disk-space-mac/" rel="noopener noreferrer"&gt;where Claude Code, Cursor, and Codex store disk space on macOS&lt;/a&gt; and &lt;a href="https://getcleanbit.app/guides/how-to-find-and-delete-old-node-modules-on-mac/" rel="noopener noreferrer"&gt;cleaning old &lt;code&gt;node_modules&lt;/code&gt; folders&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How CleanBit handles Xcode storage
&lt;/h2&gt;

&lt;p&gt;I'm the developer of &lt;strong&gt;&lt;a href="https://getcleanbit.app/" rel="noopener noreferrer"&gt;CleanBit&lt;/a&gt;&lt;/strong&gt; (&lt;a href="https://apps.apple.com/app/apple-store/id6829159531?pt=127116872&amp;amp;ct=devto&amp;amp;mt=8" rel="noopener noreferrer"&gt;Mac App Store&lt;/a&gt;), a sandboxed Mac App Store disk space cleaner for macOS 15+. CleanBit separates Xcode folders by risk instead of lumping them together:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Recommended&lt;/strong&gt; (rebuilds automatically): &lt;code&gt;Xcode DerivedData&lt;/code&gt;, old &lt;code&gt;iOS DeviceSupport&lt;/code&gt; versions (keeping the 2 most recent), SwiftUI Preview Data, and caches inside shut-down Simulator devices. Caches of apps that are currently running are blocked automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review&lt;/strong&gt; (not pre-selected, always moved to Trash): &lt;code&gt;Xcode Archives&lt;/code&gt;, so you don't accidentally wipe shipped build archives.&lt;/li&gt;
&lt;li&gt;Before confirming, CleanBit splits how much will be permanently deleted vs. moved to the Trash—and you can switch Recommended caches to Trash in Settings if you prefer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h9sim52k56b5dx6uc0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9h9sim52k56b5dx6uc0.webp" alt="CleanBit Smart Scan showing Xcode DerivedData, Old iOS DeviceSupport, and impact notes" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Will deleting &lt;code&gt;DerivedData&lt;/code&gt; delete my source code or Git history?
&lt;/h3&gt;

&lt;p&gt;No. Your source code and &lt;code&gt;.git&lt;/code&gt; repository live in your project directory, not in &lt;code&gt;~/Library/Developer/Xcode/DerivedData&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  How often should I clear Xcode &lt;code&gt;DerivedData&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;You don't need to clear it on a strict schedule. Clearing it once every few weeks—or whenever you finish a major project, upgrade Xcode, or see unexplained build glitches—is usually enough.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does deleting &lt;code&gt;DerivedData&lt;/code&gt; break Swift Package Manager dependencies?
&lt;/h3&gt;

&lt;p&gt;No, your package list is defined in &lt;code&gt;Package.swift&lt;/code&gt; or your &lt;code&gt;.xcodeproj&lt;/code&gt; and &lt;code&gt;Package.resolved&lt;/code&gt;. Xcode will re-resolve and rebuild packages automatically the next time you open the project (an internet connection may be required if packages are not cached elsewhere).&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: Written by the CleanBit developer with AI assistance. All measurements were taken on a real developer Mac. Read the original guide at &lt;a href="https://getcleanbit.app/guides/is-xcode-deriveddata-safe-to-delete/" rel="noopener noreferrer"&gt;getcleanbit.app&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>ios</category>
      <category>xcode</category>
      <category>macos</category>
    </item>
    <item>
      <title>A browser-first workflow for multilingual video subtitles</title>
      <dc:creator>Hard Work</dc:creator>
      <pubDate>Sat, 11 Jul 2026 16:20:40 +0000</pubDate>
      <link>https://dev.to/fastlog/a-browser-first-workflow-for-multilingual-video-subtitles-31i1</link>
      <guid>https://dev.to/fastlog/a-browser-first-workflow-for-multilingual-video-subtitles-31i1</guid>
      <description>&lt;h1&gt;
  
  
  A browser-first workflow for multilingual video subtitles
&lt;/h1&gt;

&lt;p&gt;Video subtitle translation looks simple until you need the result to be readable on screen. A useful workflow has to keep timestamps, allow review, preserve terminology, and produce files that editors can reuse.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Start with a timestamped transcript
&lt;/h2&gt;

&lt;p&gt;Treat transcription as structured data rather than a paragraph of text. Each segment needs a start time, end time, and editable source sentence. This makes it possible to fix names, numbers, acronyms, and sentence boundaries before translation.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Translate in subtitle-sized units
&lt;/h2&gt;

&lt;p&gt;A literal sentence-by-sentence translation often creates lines that are too long for the available reading time. Split long thoughts at natural pauses, keep terminology consistent, and avoid breaking a phrase where a viewer would naturally read it as a unit.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Keep original, translated, and bilingual outputs separate
&lt;/h2&gt;

&lt;p&gt;Different viewers need different outputs. Language learners may prefer original-plus-translation captions, while editors may need a clean translated SRT. Keeping the outputs separate also avoids permanently burning one choice into the video too early.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Review timing before rendering
&lt;/h2&gt;

&lt;p&gt;A subtitle should begin with the spoken thought and remain visible long enough to read. If a translation needs more space, split it into shorter blocks instead of squeezing it into the source segment’s duration.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Render only after the text is approved
&lt;/h2&gt;

&lt;p&gt;When the content is correct, export an SRT for editing workflows and optionally render subtitles into an MP4 for immediate sharing. A browser-first pipeline can keep the media preparation local while using speech recognition and translation services for the language work.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://videotranslator.org/video-subtitle-translator" rel="noopener noreferrer"&gt;Video Translator&lt;/a&gt; around this sequence: transcribe speech, translate timed segments, review the text, then download original, translated, or bilingual SRT files—or render the selected captions into an MP4. The key design choice is keeping the subtitle text editable until the final export.&lt;/p&gt;

&lt;p&gt;The result is a more practical multilingual workflow: captions that remain readable, reusable, and reviewable instead of being a one-way automatic conversion.&lt;/p&gt;

</description>
      <category>ai</category>
    </item>
  </channel>
</rss>
