A powerful, native macOS application to clean up your Mac and free up storage space. Built with SwiftUI and designed with safety and user control in mind.
β οΈ USE AT YOUR OWN RISK: This application deletes files from your system. While it includes safety features and protections, always review what will be deleted before confirming. Some files, especially developer tools and simulator runtimes, can be large but may be needed for your work. The developers are not responsible for any data loss or system issues that may occur from using this application.
- System & Application Caches - Remove cached data from system and applications
- Browser Caches - Clean Safari, Chrome, Firefox, Edge, and Brave caches
- Developer Tool Caches - Clear Xcode, CocoaPods, npm, Gradle, and more
- Xcode Simulators - Delete iOS/iPadOS simulator devices and runtimes
- Individual simulator devices with names (e.g., "iPhone 15 Pro - iOS 18.2")
- Simulator runtime assets (uses
xcrun simctl runtime delete) - DerivedData, Archives, and Device Support files
- AI Agent Caches - Remove caches from ChatGPT, Claude, Cursor, and other AI tools
- Temporary Files - Delete temporary files and logs
- Large Files - Find and manage files over 100MB
- Old Files - Identify files not accessed in over a year
- Safe List Protection - Critical system files are automatically protected
- Backup Support - Optional backup before deletion
- Move to Trash - Files moved to Trash by default (recoverable)
- Debug Mode - Test cleanup operations without actually deleting files
- Preview Before Cleanup - Review exactly what will be deleted
- Drill-Down Navigation - Explore folder contents and select individual files
- Show in Finder - Right-click any item to reveal it in Finder
- Visual Storage Breakdown - See what's taking up space with interactive pie chart
- Category Analysis - Detailed breakdown by file type
- Real-time Scanning - Live progress during storage analysis
- Disk Space Indicator - Bottom bar showing available space, updates after cleanup
- File Browser - Explore your filesystem with size information
- Always Accessible - Status bar icon stays visible even when app is closed
- Real-time System Stats - Monitor your Mac's health at a glance
- Storage: Available disk space with quick cleanup access
- Memory: RAM usage and pressure percentage
- CPU: Temperature and load percentage
- Battery: Level, charging status, and health percentage
- Uptime: System runtime since last restart
- Network: Real-time upload/download speeds
- Quick Actions - Launch cleanup directly from menu bar
- Auto-refresh - Stats update every 2 seconds
- Scheduled Cleanup - Automatic cleanup on daily, weekly, or monthly basis
- Customizable Thresholds - Set your own definitions for "large" and "old" files
- Selective Cleanup - Choose exactly what to clean
- Application Management - Uninstall apps with associated files
- Backup Management - Restore from previous cleanup backups
Real-time system monitoring accessible from your menu bar
- macOS 13.0 (Ventura) or later
- Xcode 15.0 or later (for building from source)
- Clone the repository:
git clone https://github.com/yourusername/MacCleaner.git
cd MacCleaner- Open the project in Xcode:
open MacStorageCleanupApp.xcodeproj- Build and run:
- Select the
MacStorageCleanupAppscheme - Press
Cmd + Rto build and run
- Select the
Check the Releases page
The app requires the following permissions to function properly:
- Full Disk Access - Required to scan and clean cache directories
- Go to System Settings > Privacy & Security > Full Disk Access
- Add Mac Storage Cleanup to the list
- The app will prompt you on first launch if this permission is not granted
Please read carefully before using this application:
Some files that can be cleaned are critical for certain workflows:
- Xcode Simulator Runtimes - Deleting these will remove iOS/iPadOS simulators. You'll need to re-download them (several GB each) if you need them for development.
- Xcode DerivedData - Safe to delete but will cause longer build times on next Xcode build.
- Developer Tool Caches - May require re-downloading dependencies (npm, CocoaPods, etc.)
- Browser Caches - Will log you out of websites and require re-downloading cached content.
- Use Debug Mode First - Test what will be deleted without actually deleting
- Review Before Deleting - Always check the preview before confirming
- Start Small - Clean obvious caches first (browser, system caches)
- Backup Important Data - Enable backup option for critical cleanups
- Know What You're Deleting - Hover over items to see full paths and descriptions
The app automatically protects:
- System files required for macOS to function
- User data (Photos, Mail, Messages, Contacts, etc.)
- Active applications
- Keychains and security files
This software is provided "as is" without warranty. The developers are not responsible for:
- Data loss from deleted files
- System instability
- Broken development environments
- Lost work or productivity
Always maintain regular backups of your important data.
The app includes a convenient menu bar monitor that stays accessible even when the main window is closed:
- Access System Stats - Click the menu bar icon to view real-time system information
- Quick Cleanup - Click "Free Up" next to storage to launch cleanup
- Open Main App - Click "Open Mac Storage Cleanup" to show the main window
- Always Running - The app continues monitoring in the background
To enable/disable the menu bar icon:
- Open Preferences (gear icon)
- Go to the "General" tab
- Toggle "Show menu bar icon"
- Launch the app and grant Full Disk Access permission when prompted
- Scan Your Mac - Click the menu icon and select "Scan Storage"
- Review Results - Browse the cleanup candidates by category
- Select Items - Choose what you want to clean (or drill down into folders)
- Clean Up - Click "Clean Up Selected" and confirm
For testing without actually deleting files:
- Open Preferences (gear icon)
- Go to the "Cleanup" tab
- Enable "Debug Mode (simulate deletions)"
- All cleanup operations will be simulated
- Click the arrow (βΊ) next to any folder to see its contents
- Select individual files or subdirectories
- Use "Show in Finder" (right-click) to locate files
- Delete selected items directly from the detail view
- Open Preferences
- Go to the "Scheduled" tab
- Enable scheduled cleanup
- Choose frequency and categories
- The app will automatically clean safe categories
The project is organized into two main components:
- FileScanner - Scans filesystem for cleanup candidates
- CacheManager - Manages cache discovery and cleanup
- CleanupEngine - Handles safe file deletion with rollback
- SafeListManager - Protects critical system files
- BackupManager - Creates and manages backups
- ApplicationManager - Discovers and uninstalls applications
- SwiftUI Views - Modern, native macOS interface
- ViewModels - MVVM architecture for clean separation
- Services - Logging, notifications, and coordination
The project includes comprehensive unit tests:
# Run all tests
xcodebuild test -scheme MacStorageCleanupApp
# Run specific test suite
xcodebuild test -scheme MacStorageCleanup -only-testing:CacheManagerTestsContributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Follow Swift style guidelines
- Add unit tests for new features
- Update documentation as needed
- Test on multiple macOS versions if possible
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.
- Built with SwiftUI and modern macOS APIs
- Inspired by the need for a safe, transparent Mac cleanup tool
- Thanks to the Swift community for excellent tools and libraries
- GitHub Issues: Report a bug or request a feature
- Menu bar system monitor with real-time stats
- Duplicate file finder
- Download folder cleanup
- Smart recommendations based on usage patterns
- Export cleanup reports
- Localization support
- Launch at login option
Made with β€οΈ for the macOS community


