Open-source mac app cleaner with Swift

Pearcleaner

An open-source mac app cleaner inspired by Freemacsoft’s AppCleaner and Sun Knudsen’s Privacy Guides post on his app-cleaner script. This project was born out of wanting to learn more. There’s probably parts of the code that could be done better as I’m fairly new to Swift, if you have suggestions I’m open to hearing them!

Screenshots

Features

  • 100% Swift
  • Super small app size (1.6MB)
  • Quick file search
  • Optional Sentinel monitor helper that can be enabled to watch Trash folder for deleted apps
  • Sentinel monitor is extremely small (210KB) and uses <=5mb of ram to run in the background and file watch. Communicates to app via custom url scheme instead of xpc to keep things even lighter
  • Requires Full Disk permission to search for files and also Accessibility to delete/restore files

Requirements

  • MacOS 13.0+
  • Using some newer SwiftUI code which requires 13.0+

Getting Pearcleaner

Pre-compiled, always up-to-date versions are available from my releases page. You might need to open this with right click-open since I don’t have a paid developer account.

Thanks

Much appreciation to Freemacsoft’s AppCleaner and Sun Knudsen’s app-cleaner script

GitHub

View Github