A professional-grade storage optimization tool that safely removes unnecessary files and reclaims valuable disk space on macOS systems.
CleanSweep Pro is a comprehensive storage management solution designed specifically for macOS. It helps users reclaim gigabytes of wasted space by intelligently identifying and removing unnecessary system files, caches, logs, and other digital debris that accumulates over time.
- Safe: Multiple safety levels and confirmation prompts protect your important data
 - Smart: Intelligent analysis identifies the biggest space wasters
 - Simple: User-friendly interface with guided cleanup options
 - Powerful: Can free up 50-100GB+ of space in minutes
 - Transparent: Detailed logging of all actions performed
 
- 
** Storage Analysis**
- Quick scan to identify space usage
 - Detailed analysis with file categorization
 - Visual storage bars and statistics
 
 - 
** Cleaning Capabilities**
- Time Machine local snapshots (often 50-100GB+)
 - Developer/Xcode derived data and caches
 - iOS device backup management
 - Application cache cleaning
 - System logs and diagnostic reports
 - Downloads folder management
 - Trash management
 
 - 
** Safety Features**
- Multiple confirmation levels
 - Safe mode enabled by default
 - Comprehensive action logging
 - Non-destructive operations
 - Backup reminders
 
 - 
** User Experience**
- Interactive menu-driven interface
 - Color-coded feedback system
 - Progress indicators
 - Real-time space freed tracking
 - Professional ASCII art interface
 
 
- Operating System: macOS 12.0 (Monterey) or later
 - Shell: Bash 3.2 or later
 - Permissions:
- Standard user for basic cleanup
 - Administrator privileges for deep system cleaning
 
 - Storage: At least 1GB free space recommended
 
- 
Download the script:
curl -O https://raw.githubusercontent.com/mr-tanta/cleansweep-macos/main/cleansweep.sh
 - 
Make it executable:
chmod +x cleansweep.sh
 - 
Run CleanSweep Pro:
./cleansweep.sh
 
# Clone the repository
git clone https://github.com/mr-tanta/cleansweep-macos.git
# Navigate to the directory
cd cleansweep-macos
# Make the script executable
chmod +x cleansweep.sh
# Run CleanSweep Pro
./cleansweep.sh- 
Launch the tool:
./cleansweep.sh
 - 
Choose from the main menu:
- Option 1: Quick Storage Scan (see what's using space)
 - Option 3: Recommended Cleanup (best for most users)
 - Option 4: Express Cleanup (one-click safe cleanup)
 
 
- 
Start with Analysis (Option 1)
- Identifies what's consuming space
 - No changes made to your system
 - Provides recommendations
 
 - 
Use Recommended Cleanup (Option 3)
- Guided step-by-step process
 - Explains each action before performing
 - Safe for all users
 
 - 
Target Specific Areas (Options 5-9)
- Time Machine snapshots
 - Developer files
 - iOS backups
 - Application caches
 - Old downloads
 
 
- 
Deep System Cleanup (Option 11)
- Requires administrator password
 - More aggressive cleaning
 - Use with caution
 
 - 
Settings (Option 14)
- Toggle Safe Mode
 - Enable Verbose Mode
 - Configure logging
 
 
Local backups that macOS keeps on your internal drive. Safe to delete if you have external backups.
- Xcode DerivedData
 - iOS Simulator data
 - Build caches
 - Old archives
 
Old iPhone/iPad backups stored locally.
Temporary files that apps create for faster performance.
Diagnostic logs and crash reports.
Old installer files (.dmg, .pkg) and forgotten downloads.
- System files required for macOS operation
 - Personal documents, photos, or music
 - Application data and preferences
 - iCloud synced content
 - Active Time Machine backups
 
Always maintain a current Time Machine backup or cloud backup before performing system maintenance.
Before CleanSweep Pro:
- Available Space: 31GB
- System Data: 182GB
After CleanSweep Pro:
- Available Space: 125GB
- System Data: 88GB
- Total Freed: 94GB
"Permission Denied" errors
- Some operations require administrator privileges
 - Use sudo for system-level cleaning: 
sudo ./cleansweep.sh 
Space not immediately reflected
- macOS may take time to update storage statistics
 - Restart your Mac for accurate readings
 
Cannot delete Time Machine snapshots
- Ensure you're not actively backing up
 - Disable automatic backups temporarily
 
- Check the built-in help (Option 15 - About)
 - Review the log file on your Desktop
 - Submit an issue on GitHub
 
CleanSweep Pro automatically creates detailed logs:
- Location: 
~/Desktop/cleansweep_log_[timestamp].txt - Contains all actions performed
 - Useful for troubleshooting
 - Safe to delete after review
 
Contributions 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
 
- Maintain consistent formatting
 - Comment complex operations
 - Test on multiple macOS versions
 - Update documentation
 
This project is licensed under the MIT License - see below for details:
MIT License
Copyright (c) 2025 Abraham Esandayinze Tanta
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
- Inspired by the macOS community's need for a safe, effective cleanup tool
 - Thanks to all beta testers and contributors
 - Special thanks to the open-source community
 
- Initial public release
 - Core cleanup functionality
 - Interactive menu system
 - Safe and deep cleanup modes
 - Comprehensive storage analysis
 - Time Machine snapshot management
 - Developer cache cleaning
 - iOS backup management
 
Abraham Esandayinze Tanta
- GitHub: @mr-tanta
 - Email: abraham@tantainnovatives.com
 
If CleanSweep Pro has helped you reclaim valuable storage space, please consider:
- Starring the repository
 - Reporting bugs
 - Suggesting new features
 - Sharing with others who might benefit
 
Made with โค๏ธ for the macOS community