A simple and safe macOS cache and log cleaner script.
Keep your Mac clean and efficient with one command.
- Clean system cache
- Remove application logs
- Clear Xcode DerivedData (if exists)
- Clean browser caches (Chrome, Brave, Edge, and Safari)
- Empty the trash bin
- Clear QuickLook thumbnail cache
- Clone the repository:
git clone https://github.com/your-username/mac-cleanup-scripts.git
cd mac-cleanup-scripts- Give execution permission:
chmod +x clean_cache.sh- Run the script:
./clean_cache.shWarning
This script will delete the cache and temporary files only. No application or system files will be affected. However, some apps may rebuild the cache when reopened, slowing down the first launch.
This open-source project is licensed under the MIT License.