<?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: MagioApps</title>
    <description>The latest articles on DEV Community by MagioApps (@magioapps).</description>
    <link>https://dev.to/magioapps</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%2F4276048%2F659f6fd7-6d44-441d-b6f7-b426d5c59735.png</url>
      <title>DEV Community: MagioApps</title>
      <link>https://dev.to/magioapps</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/magioapps"/>
    <language>en</language>
    <item>
      <title>Xcode is eating your disk: clearing DerivedData, archives and old simulators safely</title>
      <dc:creator>MagioApps</dc:creator>
      <pubDate>Wed, 02 Dec 2026 08:50:58 +0000</pubDate>
      <link>https://dev.to/magioapps/xcode-is-eating-your-disk-clearing-deriveddata-archives-and-old-simulators-safely-11bk</link>
      <guid>https://dev.to/magioapps/xcode-is-eating-your-disk-clearing-deriveddata-archives-and-old-simulators-safely-11bk</guid>
      <description>&lt;p&gt;If you build for Apple platforms, Xcode is probably the single biggest tenant on your disk. Not the app itself: everything it leaves behind. Build products for every project you've ever opened, symbol files for every iPhone you've ever plugged in, simulators for OS versions you stopped testing two years ago.&lt;/p&gt;

&lt;p&gt;The good news: most of it is rebuildable. The bad news: one folder in the mix is not, and it looks just as deletable as the rest.&lt;/p&gt;

&lt;p&gt;Here's a tour, with commands that work on macOS 11 Big Sur and later on Apple silicon. Quit Xcode and the Simulator app before you start.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, measure
&lt;/h2&gt;

&lt;p&gt;Don't delete blind. This is read-only:&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/* \
       ~/Library/Developer/CoreSimulator \
       ~/Library/Caches/com.apple.dt.Xcode 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;You'll typically see some of these:&lt;/p&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;What it is&lt;/th&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Xcode/DerivedData&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Build products, indexes, intermediate files&lt;/td&gt;
&lt;td&gt;Safe: rebuilt on next build&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;Xcode/iOS DeviceSupport&lt;/code&gt; (and watchOS, tvOS)&lt;/td&gt;
&lt;td&gt;Symbols copied from devices you've connected&lt;/td&gt;
&lt;td&gt;Mostly safe: re-copied when needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;CoreSimulator/Devices&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Your simulators and their data&lt;/td&gt;
&lt;td&gt;Safe-ish: delete what you don't use&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Xcode/UserData/Previews&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Simulators used for SwiftUI previews&lt;/td&gt;
&lt;td&gt;Safe: recreated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Caches/com.apple.dt.Xcode&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Xcode's own cache&lt;/td&gt;
&lt;td&gt;Safe&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;Builds you shipped, with their debug symbols&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Your call: keep the live ones&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Let's go through them.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. DerivedData: the big, safe one
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;~/Library/Developer/Xcode/DerivedData&lt;/code&gt; holds a folder per project with compiled objects, module caches, index data and build logs. It grows with every project and every branch you build, and nothing ever cleans it up by default.&lt;/p&gt;

&lt;p&gt;Deleting it is safe. The cost is time: your next build of each project is a full, clean build, and Xcode re-indexes, so autocomplete is sluggish for a few minutes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One project only.&lt;/strong&gt; In Xcode, Product &amp;gt; Clean Build Folder (Shift-Command-K) clears that project's build folder.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Everything, from Finder.&lt;/strong&gt; Xcode &amp;gt; Settings &amp;gt; Locations shows the DerivedData path with a small arrow to open it in Finder. Drag the project folders you don't need to the Trash.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Everything, from Terminal:&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;rm -rf ~/Library/Developer/Xcode/DerivedData/*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note the &lt;code&gt;/*&lt;/code&gt;: it empties the folder rather than deleting it. And triple-check the path before you press Return. &lt;code&gt;rm -rf&lt;/code&gt; has no undo, which is fine for DerivedData and terrible for a typo.&lt;/p&gt;

&lt;p&gt;A side benefit: clearing DerivedData is also the classic fix for strange "it builds on my colleague's Mac" errors and stale indexing.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Device support files
&lt;/h2&gt;

&lt;p&gt;Each time you connect an iPhone or iPad running an iOS version Xcode hasn't seen, it copies that version's symbols into &lt;code&gt;~/Library/Developer/Xcode/iOS DeviceSupport&lt;/code&gt;. Each folder can be gigabytes, and they pile up release after release.&lt;/p&gt;

&lt;p&gt;You can delete folders for OS versions you no longer debug on. If you connect a device with that version again, Xcode copies the symbols again (it takes a while, but nothing is lost). The same applies to the &lt;code&gt;watchOS DeviceSupport&lt;/code&gt; and &lt;code&gt;tvOS DeviceSupport&lt;/code&gt; folders if you have them.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Simulators and runtimes
&lt;/h2&gt;

&lt;p&gt;Simulators are sneaky because each one has its own installed apps, caches and data, and old ones linger after you've removed the runtime they belong to.&lt;/p&gt;

&lt;p&gt;See what you have:&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;p&gt;Remove simulators whose runtime is no longer installed (they can't boot anyway):&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;p&gt;Reset a simulator's contents without deleting it:&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 erase &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;device-udid&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clear the simulators Xcode uses for SwiftUI previews:&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
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The simulator &lt;strong&gt;runtimes&lt;/strong&gt; themselves (whole iOS versions) are separate, and often the largest items. In recent Xcode versions you manage them in Xcode &amp;gt; Settings &amp;gt; Platforms (renamed Components in newer releases): select an old runtime and remove it. With Xcode 15 or later you can also do it from Terminal:&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
xcrun simctl runtime delete &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;runtime-identifier&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before deleting a runtime, check your deployment target. If your app still supports an older iOS, you may want one simulator on that version.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Caches
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;~/Library/Caches/com.apple.dt.Xcode&lt;/code&gt; is Xcode's own cache. Safe to delete with Xcode closed.&lt;/p&gt;

&lt;p&gt;If you use Swift Package Manager, &lt;code&gt;~/Library/Caches/org.swift.swiftpm&lt;/code&gt; holds downloaded package repositories. Also safe: packages are fetched again on the next resolve. Expect the first build afterwards to take longer, especially offline.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Archives: the one to think about
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;~/Library/Developer/Xcode/Archives&lt;/code&gt; looks like more build output. It isn't.&lt;/p&gt;

&lt;p&gt;Each archive is a build you distributed, together with its &lt;strong&gt;dSYM&lt;/strong&gt; files: the debug symbols that turn a crash report's memory addresses back into function names and line numbers. Delete the archive for a version that's still in your users' hands, and you may lose the ability to read that version's crash reports, unless you've stored the dSYMs somewhere else.&lt;/p&gt;

&lt;p&gt;Sensible rule: keep archives for every version that's still live. Delete archives for builds that never shipped, test builds, and versions long retired. Use Window &amp;gt; Organizer &amp;gt; Archives in Xcode, which shows the version and date for each, and right-click &amp;gt; Delete.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Old copies of Xcode
&lt;/h2&gt;

&lt;p&gt;If you keep a second Xcode for an older toolchain (&lt;code&gt;Xcode-15.app&lt;/code&gt; next to &lt;code&gt;Xcode.app&lt;/code&gt;), that's many gigabytes. Your call, but make sure no project or CI script still points at it via &lt;code&gt;xcode-select&lt;/code&gt; or &lt;code&gt;DEVELOPER_DIR&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A sane routine
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Monthly:&lt;/strong&gt; clear DerivedData, run &lt;code&gt;xcrun simctl delete unavailable&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;After each major iOS release:&lt;/strong&gt; remove old DeviceSupport folders and runtimes you no longer target.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;After each App Store release:&lt;/strong&gt; prune archives for retired versions, keep the live ones.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Doing it without Terminal
&lt;/h2&gt;

&lt;p&gt;If you'd rather not keep this routine in your head, that's the job we built Ample for: a native Mac disk cleaner that knows these folders by name.&lt;/p&gt;

&lt;p&gt;Ample sorts what it finds into three colours. DerivedData sits in &lt;strong&gt;Safe&lt;/strong&gt; (green), next to &lt;code&gt;~/Library/Caches&lt;/code&gt;, logs, &lt;code&gt;node_modules&lt;/code&gt;, npm and Cargo caches and old installers: things that regenerate by themselves. Xcode Archives sit in &lt;strong&gt;Important&lt;/strong&gt; (amber): shown to you, never removed for you, exactly because of the dSYM problem above. And folders like &lt;code&gt;.git&lt;/code&gt;, &lt;code&gt;.ssh&lt;/code&gt; and your Keychains are &lt;strong&gt;Critical&lt;/strong&gt;: never touched.&lt;/p&gt;

&lt;p&gt;Only green can ever be cleaned. Cleaning moves items to a quarantine first, with Undo at any time, and you purge when you're sure. Each item is re-checked right before it's touched. Ample also has Tools for old simulators, Homebrew cleanup, Docker space and Time Machine snapshots, plus a Space Map and a Large Files finder.&lt;/p&gt;

&lt;p&gt;Scanning is free, unlimited and read-only. Cleaning, the Space Map, Large Files and Tools are in Pro, $10 once. No account, no analytics in the app, and your files never leave your Mac. It needs macOS 11 or later on Apple silicon (M1 or later).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Curious how much your Xcode is hoarding?&lt;/strong&gt; &lt;a href="https://ample.magioapps.com/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=ample_launch" rel="noopener noreferrer"&gt;Download Ample free&lt;/a&gt; and see how much space you can get back in about a minute.&lt;/p&gt;

</description>
      <category>xcode</category>
      <category>ios</category>
      <category>macos</category>
      <category>productivity</category>
    </item>
    <item>
      <title>What's actually safe to delete on a Mac? A traffic-light guide</title>
      <dc:creator>MagioApps</dc:creator>
      <pubDate>Tue, 01 Dec 2026 09:53:21 +0000</pubDate>
      <link>https://dev.to/magioapps/whats-actually-safe-to-delete-on-a-mac-a-traffic-light-guide-267f</link>
      <guid>https://dev.to/magioapps/whats-actually-safe-to-delete-on-a-mac-a-traffic-light-guide-267f</guid>
      <description>&lt;p&gt;"Storage almost full." It always shows up at a bad moment: halfway through a macOS update, mid-export, or the night before a flight when you want to download a few films. Then comes the hard part. You open Finder, find a folder called Library, and wonder which of these thousands of files you can remove without breaking something.&lt;/p&gt;

&lt;p&gt;Here is a simple way to think about it, borrowed from the street corner: a traffic light.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Green (safe):&lt;/strong&gt; files that apps rebuild by themselves. Deleting them costs you, at most, a little re-downloading or rebuilding.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amber (your call):&lt;/strong&gt; files only you can judge. Nothing breaks if you delete them, but you might lose something you wanted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Red (don't touch):&lt;/strong&gt; files that hold your data, your passwords or your history.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything below applies to macOS 11 Big Sur and later on Apple silicon Macs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 0: look before you delete
&lt;/h2&gt;

&lt;p&gt;Guessing is how people delete the wrong thing. Start by seeing where the space actually goes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;macOS 13 Ventura and later:&lt;/strong&gt; Apple menu &amp;gt; System Settings &amp;gt; General &amp;gt; Storage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;macOS 11 and 12:&lt;/strong&gt; Apple menu &amp;gt; About This Mac &amp;gt; Storage &amp;gt; Manage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You'll see categories such as Applications, Documents, Photos and the vague "System Data". Apple's own recommendations on that screen (Store in iCloud, Optimize Storage, Empty Trash Automatically, Reduce Clutter) are a sensible first stop.&lt;/p&gt;

&lt;p&gt;If you're comfortable in Terminal, &lt;code&gt;du&lt;/code&gt; gives a quick, read-only answer. Nothing is changed:&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;# Your home folders by size, biggest last&lt;/span&gt;
du -sh ~/* 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="c"&gt;# Hidden folders too (.npm, .cargo, .docker and friends)&lt;/span&gt;
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;p&gt;Terminal can't read some protected folders unless you've given it Full Disk Access, so a few numbers may be missing. That's fine for a first look.&lt;/p&gt;

&lt;h2&gt;
  
  
  Green: safe to delete (nothing breaks)
&lt;/h2&gt;

&lt;p&gt;Nothing in this group breaks an app or loses your work. What it costs differs, though: some of it rebuilds offline in seconds, some needs a re-download, and some (logs) doesn't come back at all. Each item below says which.&lt;/p&gt;

&lt;h3&gt;
  
  
  Your caches: ~/Library/Caches
&lt;/h3&gt;

&lt;p&gt;Apps keep temporary data here so they can load things faster next time: thumbnails, downloaded updates, web content. Deleting a cache is safe because the app rebuilds it. What you pay is time: some caches are rebuilt locally from data already on your Mac, others are downloaded again, so expect a slower first launch and some network use, and clear them before a flight rather than during one.&lt;/p&gt;

&lt;p&gt;Two rules apply:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Quit the app first.&lt;/strong&gt; Pulling a cache out from under a running app can confuse it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Delete the folders inside, not ~/Library/Caches itself.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To get there: in Finder, choose Go &amp;gt; Go to Folder (Shift-Command-G) and type &lt;code&gt;~/Library/Caches&lt;/code&gt;. Sort by size and move the biggest app folders to the Trash.&lt;/p&gt;

&lt;p&gt;Leave &lt;code&gt;/Library/Caches&lt;/code&gt; and &lt;code&gt;/System/Library/Caches&lt;/code&gt; alone. Those belong to the system, not to you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If the free space doesn't go up:&lt;/strong&gt; macOS may be keeping the deleted data in local Time Machine snapshots for a while. You can see them, read-only, with:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;macOS removes these snapshots by itself when it needs the room, so the space comes back without you doing anything.&lt;/p&gt;

&lt;h3&gt;
  
  
  Logs: ~/Library/Logs
&lt;/h3&gt;

&lt;p&gt;Text records of what apps did. They're the one green item that doesn't come back: delete them and nothing breaks, but the history is gone. So if you're chasing a crash or have a support ticket open, keep the logs for that app until it's solved. Otherwise they're safe to remove. They're usually small, though a misbehaving app can let them grow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Old installers
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;.dmg&lt;/code&gt; and &lt;code&gt;.pkg&lt;/code&gt; files sitting in Downloads after you've installed the app are just copies. Once the app is in Applications, the installer can go. The same goes for an old "Install macOS ..." app left in Applications after an upgrade: it can take many gigabytes, and you can download it again from Apple if you ever need it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Developer build files
&lt;/h3&gt;

&lt;p&gt;If you write code, this is often where the biggest wins hide: Xcode's DerivedData, &lt;code&gt;node_modules&lt;/code&gt; folders, and package caches for npm and Cargo. All of them can be rebuilt from your source code and lockfiles, as long as you still have network access to the package registry (including any private one) and the tools for native modules. Don't clear them right before working offline. We'll cover them in detail in a later article.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Trash
&lt;/h3&gt;

&lt;p&gt;Obvious, often forgotten: files in the Trash still use space until you empty it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Amber: your call
&lt;/h2&gt;

&lt;p&gt;Nothing here is dangerous to the system. It's dangerous to &lt;em&gt;you&lt;/em&gt;, because only you know what matters.&lt;/p&gt;

&lt;h3&gt;
  
  
  Downloads and Desktop
&lt;/h3&gt;

&lt;p&gt;Often the biggest pile on a Mac, and impossible to judge automatically. In Finder, switch to List view (Command-2), open View &amp;gt; Show View Options and tick "Calculate all sizes", then click the Size column. Decide file by file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Documents
&lt;/h3&gt;

&lt;p&gt;Same approach. To find big files anywhere, open a Finder search (Command-F), click the + button, choose "Other…", and add "File Size" as a criterion, for example "is greater than 1 GB".&lt;/p&gt;

&lt;h3&gt;
  
  
  iPhone and iPad backups
&lt;/h3&gt;

&lt;p&gt;Local device backups live in &lt;code&gt;~/Library/Application Support/MobileSync/Backup&lt;/code&gt; and can be large. Don't delete folders there by hand. Instead, connect the device, select it in the Finder sidebar, and use &lt;strong&gt;Manage Backups&lt;/strong&gt; on the General tab. Make sure you have a newer backup (local or iCloud) before removing an old one.&lt;/p&gt;

&lt;h3&gt;
  
  
  Virtual machines
&lt;/h3&gt;

&lt;p&gt;VM disk images can take tens of gigabytes. Delete one and its whole operating system and files go with it. Keep the ones you still use.&lt;/p&gt;

&lt;h3&gt;
  
  
  Xcode Archives
&lt;/h3&gt;

&lt;p&gt;Archives of apps you've shipped contain the debug symbols you need to read crash reports. Keep the archives for versions people are still running.&lt;/p&gt;

&lt;h2&gt;
  
  
  Red: don't touch
&lt;/h2&gt;

&lt;p&gt;These folders hold things you can't rebuild. If you want to shrink them, do it from inside the app that owns them, never by deleting files in Finder.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Photos Library&lt;/strong&gt; (&lt;code&gt;~/Pictures/Photos Library.photoslibrary&lt;/code&gt;): never open it and delete things inside. Use the Photos app, or turn on iCloud Photos with "Optimize Mac Storage".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mail&lt;/strong&gt; (&lt;code&gt;~/Library/Mail&lt;/code&gt;) and &lt;strong&gt;Messages&lt;/strong&gt; (&lt;code&gt;~/Library/Messages&lt;/code&gt;): delete big attachments and old conversations inside the apps. In Messages, Settings &amp;gt; General &amp;gt; Keep messages (Preferences &amp;gt; General on macOS 11 and 12) lets you choose 30 days or 1 year instead of Forever.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keychains&lt;/strong&gt; (&lt;code&gt;~/Library/Keychains&lt;/code&gt;): your saved passwords and certificates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iCloud Drive:&lt;/strong&gt; deleting a file here deletes it on every device that syncs it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;~/.ssh:&lt;/strong&gt; your SSH keys. Lose them and you may lose access to servers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;.git folders&lt;/strong&gt; inside projects: your project's entire history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;~/Library as a whole:&lt;/strong&gt; it also holds app settings and data. Clean specific folders inside it, never the whole thing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Habits that prevent regret
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Move to Trash, don't &lt;code&gt;rm -rf&lt;/code&gt;.&lt;/strong&gt; The Trash is your undo button until you empty it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Quit apps before clearing their caches.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Have a backup.&lt;/strong&gt; If Time Machine is running, a mistake is an inconvenience, not a disaster.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't chase "System Data" blindly.&lt;/strong&gt; Part of it is local Time Machine snapshots and other space that macOS frees by itself when it needs room.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Be wary of anything that promises speed.&lt;/strong&gt; Deleting files gives you disk space. It's not a turbo button, whatever a pop-up says.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where Ample fits
&lt;/h2&gt;

&lt;p&gt;We built Ample, a native Mac disk cleaner, around exactly this traffic light, instead of a big "Clean everything" button.&lt;/p&gt;

&lt;p&gt;Ample scans your home folder read-only and sorts every folder into three groups:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Critical&lt;/strong&gt; (red): Keychains, Photos Library, Mail, Messages, iCloud Drive, &lt;code&gt;.ssh&lt;/code&gt;, &lt;code&gt;.git&lt;/code&gt;. Never touched.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Important&lt;/strong&gt; (amber): Documents, Downloads, Desktop, iPhone backups, virtual machines, Xcode Archives. Shown to you, never removed for you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Safe&lt;/strong&gt; (green): &lt;code&gt;~/Library/Caches&lt;/code&gt;, logs, DerivedData, &lt;code&gt;node_modules&lt;/code&gt;, npm and Cargo caches, old installers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Only green can ever be cleaned. Even then, nothing disappears straight away: items move to a quarantine first, you can Undo at any time, and you purge them when you're sure. Each item is re-checked right before it's touched. Ample doesn't follow links, leave your home folder, cross to other disks or walk cloud folders.&lt;/p&gt;

&lt;p&gt;Your files never leave your Mac. There's no account, no cloud and no analytics in the app, and it works without Full Disk Access (it simply skips protected folders).&lt;/p&gt;

&lt;p&gt;The free version scans as often as you like and tells you how much space you could free up. Cleaning with quarantine and Undo, the Space Map, Large Files and the Tools are in Pro, which is $10 once, no subscription. Ample needs macOS 11 or later on an Apple silicon Mac; Intel Macs aren't supported yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Green:&lt;/strong&gt; caches, logs, old installers, build files. Delete after quitting the app. Keep logs you're using to debug something.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amber:&lt;/strong&gt; Downloads, Desktop, Documents, device backups, VMs, archives. Look first, then decide.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Red:&lt;/strong&gt; Photos, Mail, Messages, Keychains, iCloud Drive, &lt;code&gt;.ssh&lt;/code&gt;, &lt;code&gt;.git&lt;/code&gt;. Leave them alone, or manage them from their own apps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Want to see your own traffic light?&lt;/strong&gt; &lt;a href="https://ample.magioapps.com/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=ample_launch" rel="noopener noreferrer"&gt;Download Ample free&lt;/a&gt; and see how much space you can get back in about a minute.&lt;/p&gt;

</description>
      <category>macos</category>
      <category>mac</category>
      <category>productivity</category>
      <category>storage</category>
    </item>
  </channel>
</rss>
