Introduction / Why This Is Needed
A full system disk on a Mac is a common problem that leads to slowdowns, update errors, and an inability to install apps. macOS automatically manages some space, but over time "system junk" accumulates: caches, temporary files, duplicates, old installation images.
This guide will help you safely and systematically free up 5 to 50+ GB of space, using both built-in macOS tools and the Terminal. We will focus on actions that won't harm the system or your data.
Requirements / Preparation
- macOS Version: These instructions are current for macOS Sonoma (14.x), Ventura (13.x), and Monterey (12.x). The interface may differ slightly.
- Administrator Privileges: Cleaning system caches (
/Library/Caches) will require an administrator password. - Backup (Recommended): Before mass file deletion, ensure important data is backed up (e.g., via Time Machine).
- Close Unnecessary Applications: Especially those actively working with the disk (video editors, virtual machines).
Step-by-Step Instructions
Step 1: Assess Current Disk Usage
First, understand what is taking up space.
- Click the Apple logo () in the top-left corner.
- Select "About This Mac" → "Storage" tab.
- Wait for the chart to load. macOS breaks down usage into categories: "Applications", "Documents", "System Data", "Caches" (may be under "Other Files").
💡 Tip: Click "Manage Storage" for a detailed analysis and automatic recommendations.
Step 2: Clean Up "Optimize Storage"
This is the simplest and safest method.
- In the "Manage Storage" window (opened from the previous step), review the "Recommendations" section.
- Active items may include:
- "Automatically empty Trash after 30 days" — enable.
- "Reduce clutter" — click "Review Files".
- "Store in iCloud" — consider for documents and photos.
- These actions free up space occupied by media files you've already watched.
Step 3: Manually Delete Large Files
Automation doesn't see everything. You need to find and remove the "elephants."
- In the same "Manage Storage" window, select the "Large Files" tab.
- The system will sort files larger than 1 MB by size. Review the list carefully.
- Typical "candidates" for deletion:
- Installation images (
*.dmg,*.iso) — not needed after software installation. - Old video projects (e.g., from iMovie, Final Cut).
- Archives (
.zip,.tar.gz) that you have already extracted. - Browser caches (sometimes appear here).
- Installation images (
- Select unwanted files and click "Delete".
Step 4: Clear User Caches
Caches are a primary source of "system junk." They can be deleted without harm.
- Open Finder.
- In the menu, go to "Go" → "Go to Folder" (or press
Cmd+Shift+G). - Enter the path:
~/Library/Cachesand click "Go." - You will enter the folder with caches for all your applications. Do not delete the
Cachesfolder itself. - Open each subfolder (e.g.,
com.apple.Safari,com.google.Chrome) and delete its contents (files and subfolders inside). Empty folders remaining is normal. - You can also delete the
~/Library/Logsfolder (logs) following the same principle.
Step 5: Clear System Caches (Requires Password)
System caches (/Library/Caches) can also be cleaned, but be more cautious.
- Open Terminal (via Spotlight
Cmd+Space→ type "Terminal"). - Enter the command:
sudo rm -rf /Library/Caches/* - Press
Enter. The system will ask for your administrator password (characters are not displayed as you type — type it and pressEnter). - The command will recursively delete all files and folders inside
/Library/Caches. Do not runsudo rm -rf /Library/Caches(without/*) — this would delete the folder itself, which would break the system.
⚠️ Important: This command is safe for caches, but if you type it incorrectly (e.g.,
sudo rm -rf /), you could destroy the system. Ensure the path is correct.
Step 6: Delete Old iOS/iPadOS Backups
Backups for devices you no longer use can take up gigabytes.
- Open "Manage Storage" (see Step 1).
- Find the "iOS/iPadOS Backups" category in the list.
- You will see a list of devices and the size of their backups.
- Select a device that is no longer relevant and click "Delete Backup".
Verify the Result
- Return to "About This Mac" → "Storage".
- Wait 1-2 minutes for the chart to update.
- Compare the total "Available" space with what it was before you started.
- You can also check in Terminal:
In the line fordf -h //or/System/Volumes/Data, look at theAvail(available) column.
Potential Issues
- "Permission denied" (in Terminal): Ensure you use
sudofor system folders. For folders in~/Library,sudois not needed. - Space not freed after deleting files: Some apps (e.g., Final Cut Pro, Xcode) store caches in their own databases or in
~/Library/Application Supportfolders. These need to be cleared via the app's own settings. Also check if virtual machines (Parallels, VMware) are running — their disk images may be active. - System "slows down" after cache cleanup: This is normal. Applications will recreate necessary caches on first launch, which may take a few seconds.
Cachesfolder is missing: Do not delete theCachesfolder itself. If you did this accidentally, restart your Mac — the system will recreate it automatically.
Additional Methods for Advanced Users
If the basic steps didn't yield the desired effect (especially on smaller SSDs), consider:
- Search for duplicate media files: Use utilities like Gemini 2 or dupeGuru. Particularly relevant for photos and music.
- Clean up old language packs: In
~/Library/Application Supportand/Library/Application Support, you can find folders with language resources for applications (e.g.,Microsoft Office Language Pack). Delete unnecessary ones. - Remove old app versions: Duplicates may exist in the
/Applicationsfolder (e.g.,Firefox.appandFirefox 102.app). Keep only the latest version. - Clean Docker cache (if used):
docker system prune -a(will remove stopped containers, images, networks, etc.).
Prevention
- Perform a quick check via "Manage Storage" once a month.
- Do not leave large files (ISOs, DMGs, videos) on your desktop and in
~/Downloadslonger than necessary. - Use the
/tmpfolder for temporary files (it is cleared on reboot).