Home/Troubleshooting/Remote Mac says the disk is almost full: how to clear Xcode and Docker storage

Remote Mac says the disk is almost full: how to clear Xcode and Docker storage

Updated · airankrush

Symptom

macOS shows “Your disk is almost full”, Xcode builds fail halfway, downloaded installers will not unpack, or Docker and npm report No space left on device.

Possible causes (most common first)

  1. Xcode simulator runtimes, platform support components and build output keep piling up. On a development machine this is usually the biggest consumer.
  2. Docker images, stopped containers and build cache all live in one disk image, which only grows if nobody cleans it.
  3. Download caches from package managers such as Homebrew, npm and CocoaPods, plus installers left in the Downloads folder and files sitting in a Trash that was never emptied.
  4. Task logs or exported archives keep being written to the machine and nobody removes the old ones.

Troubleshooting steps (easiest first)

  1. Find out what is using the space

    Open System Settings → General → Storage. macOS lists usage by category; Apple's instructions are in Free up storage space on Mac. In Terminal, du -sh ~/Library/Developer ~/Library/Caches ~/Downloads shows how big a few common folders are. Look at the numbers before you delete anything; do not delete by guesswork.

  2. Clear Xcode's optional components and build output

    In Xcode, Settings → Components shows the reclaimable space next to each platform and simulator runtime, and the info button lets you delete the ones you do not use. See the Apple developer documentation. The location of build output (Derived Data) is shown under Locations in Xcode's settings. You can delete the whole folder; the next build recreates it, and only that first compile is slower. xcrun simctl delete unavailable removes simulator devices whose runtime no longer exists.

  3. Clear Docker and package manager caches

    docker system prune removes stopped containers, unused networks and dangling images. Read the list it prints before you confirm. Docker Desktop's Troubleshoot menu has Clean up data, but that destroys every local container and image, so use it only when you are sure you do not need them. For package managers, brew cleanup removes old versions and download cache, and npm cache clean --force clears the npm cache.

  4. Empty the Trash, tidy Downloads and logs

    Moving a file to the Trash does not free any space until you empty it. Xcode installers and disk images in the Downloads folder can be deleted once they are installed. For long-running tasks, split logs by day and delete old ones on a schedule.

  5. What not to delete

    Apple's general clean-up advice includes “delete user accounts you no longer use” and “start up in safe mode”. Neither applies to a rented machine: any account on the Mac other than yours is the platform's management account, the remote-access and management components must not be uninstalled, and starting in safe mode drops your remote connection. If you see an entry in /Library or /Applications that you do not recognise, ask support before deleting it.

When to contact support directly

If the disk is still too small after cleaning, the configuration you picked is too small, and more cleaning only postpones the problem. Contact support on Contact support with your machine ID, a screenshot of the Storage page and your main use, and ask about changing the configuration or adding an external drive. An external drive adds storage only, not memory; pricing and stock are on the plans page. If a folder you do not recognise is unusually large, send it to support to confirm as well. Do not delete it yourself.

FAQ

“System Data” in Storage is huge. Can I clear it?

That category mixes caches, logs, simulators and container data, and there is no one-click way to clear it. After you clear the development tool caches with the steps above it usually shrinks too. Do not let cleaner apps from unknown sources touch system folders.

Can I keep my projects on an external drive?

Yes, provided the machine already has an external drive attached. Whether it has one, and how to add one, has to be confirmed with support first: connector, capacity and delivery arrangements.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All troubleshooting pages