Skip to content

Professional macOS storage optimizer that safely removes system junk, clears caches, manages Time Machine snapshots, and cleans developer files. Free up 50-100GB+ with intelligent cleanup algorithms. MIT Licensed.

License

Notifications You must be signed in to change notification settings

mr-tanta/clean-sweep-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CleanSweep Pro for macOS

Version macOS License Bash

A professional-grade storage optimization tool that safely removes unnecessary files and reclaims valuable disk space on macOS systems.


Overview

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.

Why CleanSweep Pro?

  • 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

Features

Core Functionality

  • ** 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

Requirements

  • 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

Installation

Quick Install

  1. Download the script:

    curl -O https://raw.githubusercontent.com/mr-tanta/cleansweep-macos/main/cleansweep.sh
  2. Make it executable:

    chmod +x cleansweep.sh
  3. Run CleanSweep Pro:

    ./cleansweep.sh

Git Installation

# 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

๐Ÿ“– Usage Guide

Basic Usage

  1. Launch the tool:

    ./cleansweep.sh
  2. 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)

Recommended Workflow

  1. Start with Analysis (Option 1)

    • Identifies what's consuming space
    • No changes made to your system
    • Provides recommendations
  2. Use Recommended Cleanup (Option 3)

    • Guided step-by-step process
    • Explains each action before performing
    • Safe for all users
  3. Target Specific Areas (Options 5-9)

    • Time Machine snapshots
    • Developer files
    • iOS backups
    • Application caches
    • Old downloads

Advanced Options

  • 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

What Can Be Cleaned?

Time Machine Local Snapshots (50-100GB+)

Local backups that macOS keeps on your internal drive. Safe to delete if you have external backups.

Developer Files (10-50GB)

  • Xcode DerivedData
  • iOS Simulator data
  • Build caches
  • Old archives

iOS Device Backups (10-50GB per device)

Old iPhone/iPad backups stored locally.

Application Caches (5-30GB)

Temporary files that apps create for faster performance.

System Logs (1-10GB)

Diagnostic logs and crash reports.

Downloads Folder

Old installer files (.dmg, .pkg) and forgotten downloads.

Safety Information

What CleanSweep Pro NEVER Deletes

  • System files required for macOS operation
  • Personal documents, photos, or music
  • Application data and preferences
  • iCloud synced content
  • Active Time Machine backups

Backup Recommendation

Always maintain a current Time Machine backup or cloud backup before performing system maintenance.

Example Results

Before CleanSweep Pro:
- Available Space: 31GB
- System Data: 182GB

After CleanSweep Pro:
- Available Space: 125GB
- System Data: 88GB
- Total Freed: 94GB

Troubleshooting

Common Issues

"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

Getting Help

  1. Check the built-in help (Option 15 - About)
  2. Review the log file on your Desktop
  3. Submit an issue on GitHub

Logging

CleanSweep Pro automatically creates detailed logs:

  • Location: ~/Desktop/cleansweep_log_[timestamp].txt
  • Contains all actions performed
  • Useful for troubleshooting
  • Safe to delete after review

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Coding Standards

  • Maintain consistent formatting
  • Comment complex operations
  • Test on multiple macOS versions
  • Update documentation

License

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.

Acknowledgments

  • 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

Version History

v1.0.0 (2025-07-26)

  • 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

Author

Abraham Esandayinze Tanta

Support

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

About

Professional macOS storage optimizer that safely removes system junk, clears caches, manages Time Machine snapshots, and cleans developer files. Free up 50-100GB+ with intelligent cleanup algorithms. MIT Licensed.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages