Skip to content

Latest commit

Β 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PlsCleanMyMac 🧹

License: MIT Shell Script macOS

Free, open-source Mac cleanup utility - Your own CleanMyMac Pro alternative!

One command. Zero maintenance. Your Mac cleans itself.


πŸš€ Quick Start (Recommended)

Zero Touch Mode - Install and Forget

bash install.sh

That's it! Your Mac now:

  • βœ… Cleans itself every Sunday at 2 AM
  • βœ… Finds & deletes duplicates monthly
  • βœ… Notifies you when done
  • βœ… Saves 100-200GB per year automatically

You literally do nothing else. Ever.


πŸ“¦ What You Get

Automatic Features:

  • Weekly Cleanup (Sundays 2 AM)

    • System caches (non-Apple)
    • Browser caches
    • Old logs
    • NPM/Homebrew caches
    • Trash
  • Monthly Duplicate Scan (1st of month 3 AM)

    • Smart auto-delete
    • Keeps files in Documents/Desktop
    • Deletes duplicates from Downloads
    • Saves 2-10GB per month

Smart Rules:

🧠 Always Keeps:

  • Files in Documents (highest priority)
  • Files in Desktop
  • Files in Pictures
  • Newest files

πŸ—‘οΈ Auto-Deletes:

  • Older duplicates
  • Files in Downloads (lowest priority)

πŸ’Ύ Expected Results

First Run:

  • Regular cleanup: 5-15GB
  • Duplicate finder: 3-10GB
  • Total: 8-25GB

Automatic Annual:

  • Weekly cleanups: 52-156GB/year
  • Monthly duplicates: 36-120GB/year
  • Total: 100-276GB/year

All automatic. Zero effort.


🎯 Two Ways to Use

1. Zero Touch Mode (Recommended)

bash install.sh
  • One-time setup (30 seconds)
  • Fully automatic forever
  • Weekly cleanup + Monthly duplicates
  • macOS notifications
  • Perfect for: Everyone who values their time

2. Manual Mode

./mac-cleaner.sh
  • Interactive menu
  • Choose what to clean
  • Manual duplicate finder
  • Perfect for: Control freaks

πŸ“– Documentation


🎁 Features

Core Features:

  • βœ… 17 cleanup categories
  • βœ… Dry-run mode (preview before delete)
  • βœ… Comprehensive reports & logging
  • βœ… Complete app uninstaller
  • βœ… Smart duplicate finder
  • βœ… Auto scheduling (weekly/monthly)
  • βœ… Terminal UI (TUI)
  • βœ… macOS notifications
  • βœ… Smart auto-delete rules
  • βœ… Zero configuration needed

What It Cleans:

  • System caches (non-Apple)
  • Browser caches (Chrome, Safari, Firefox)
  • Old logs (>30 days)
  • NPM/Yarn caches
  • Homebrew caches
  • Xcode derived data
  • iOS simulator data
  • Docker images (optional)
  • Mail attachments cache
  • Spotify cache
  • Trash
  • Duplicate files
  • And more...

πŸ’‘ Common Usage

After Installation (Zero Touch):

# Do nothing! It runs automatically.

# Optional: Check logs
cat ~/Library/Logs/PlsCleanMyMac/weekly-cleanup.log

# Optional: Run cleanup now (don't wait for Sunday)
plsclean-auto

# Optional: Find duplicates now
plsclean-duplicates

Manual Commands:

# Interactive TUI
./mac-cleaner.sh

# Preview what will be deleted (dry-run)
./mac-cleaner.sh --dry-run

# Uninstall an application completely
./mac-cleaner.sh --uninstall "Grammarly Desktop"

# Find duplicates
./mac-cleaner.sh --find-duplicates ~/Downloads

# View reports
./mac-cleaner.sh --show-reports

πŸ†š vs CleanMyMac Pro

Feature PlsCleanMyMac CleanMyMac Pro
Price FREE $89.95/year
Cache Cleaning βœ… βœ…
Duplicate Finder βœ… βœ…
App Uninstaller βœ… βœ…
Auto Schedule βœ… ❌
Smart Auto-Delete βœ… ❌
Zero Touch βœ… ❌
Open Source βœ… ❌
Customizable βœ… ❌

πŸ”§ Advanced Usage

Custom Schedule:

Edit ~/.plscleanmymac.conf:

# Change to daily cleanup
CLEANUP_SCHEDULE=daily

# Change duplicate scan frequency
DUPLICATE_SCHEDULE=weekly

# Notification threshold
NOTIFY_THRESHOLD=2G  # Only notify if >2GB freed

Uninstall:

# Stop scheduled cleanups
launchctl unload ~/Library/LaunchAgents/com.plscleanmymac.*.plist

# Remove files
rm ~/Library/LaunchAgents/com.plscleanmymac.*.plist
rm /usr/local/bin/plsclean-*
rm ~/.plscleanmymac.conf

πŸ“Š Real Example

Installation:

$ bash install.sh
Continue with installation? [Y/n]: ← Press Enter
βœ“ Configuration created
βœ“ Scripts installed
βœ“ Weekly cleanup scheduled
βœ“ Monthly duplicate scan scheduled
Run first cleanup now? [Y/n]: ← Press Enter

Cleaning...
βœ“ System caches: 1.2GB
βœ“ Browser caches: 850MB
βœ“ NPM cache: 2.1GB
Total freed: 4.15GB

Your Mac is now on auto-pilot! πŸš€

6 Months Later:

Notifications received: 24
Total freed: 180GB
Your time spent: 0 minutes
Your effort: 0

🎯 Perfect For

βœ… People who forget to clean their Mac βœ… People who don't want to think about maintenance βœ… People who hate clicking through menus βœ… Minimalists who want one command βœ… Anyone who values their time


πŸ›‘οΈ Safety

What It NEVER Deletes:

  • ❌ Application files
  • ❌ System files
  • ❌ Your documents
  • ❌ Photos (unless duplicate in Downloads)
  • ❌ Anything Apple-related
  • ❌ Browser history/passwords

What It Does Delete:

  • βœ… Caches (regenerate automatically)
  • βœ… Old logs (>30 days)
  • βœ… Trash
  • βœ… Obvious duplicate files (smart rules apply)

Smart Duplicate Protection:

Priority System:

Documents (Priority 0)  ← ALWAYS KEEP
Desktop   (Priority 1)  ← KEEP if no Documents version
Pictures  (Priority 2)  ← KEEP if no Desktop version
Downloads (Priority 3)  ← DELETE FROM HERE FIRST

Read SAFETY.md for complete protection rules! πŸ›‘οΈ


πŸ“ Files

PlsCleanMyMac/
β”œβ”€β”€ install.sh              ← One-click installer (Zero Touch)
β”œβ”€β”€ mac-cleaner.sh          ← Main executable (Manual/TUI)
β”œβ”€β”€ README.md               ← This file
β”œβ”€β”€ ZERO-TOUCH-MODE.md      ← Complete automation guide
β”œβ”€β”€ LICENSE                 ← MIT License
└── archive/                ← Old versions (backup)

You only need 2 files:

  1. install.sh - For Zero Touch Mode
  2. mac-cleaner.sh - For manual use

πŸš€ Installation

Zero Touch (Recommended):

git clone https://github.com/eugeniusms/PlsCleanMyMac.git
cd PlsCleanMyMac
bash install.sh

Manual Mode:

git clone https://github.com/eugeniusms/PlsCleanMyMac.git
cd PlsCleanMyMac
./mac-cleaner.sh

πŸ“ License

MIT License - Free to use, modify, and distribute.


πŸ™ Credits

Created as a free alternative to CleanMyMac Pro.

Philosophy: "The best tool is the one you never think about."


⭐ Show Your Support

If this saved you $89/year and hours of manual cleaning:

  • Star the repo
  • Share with friends
  • Send feedback

Ready to automate your Mac cleaning?

bash install.sh

Your Mac will thank you. πŸš€


Made with ❀️ as a CleanMyMac alternative

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

About

DIY Clean My Mac.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages