Menu

I'm the author of a Mac cleaner. Here's what I had to fix about how it deletes files.
📰

I'm the author of a Mac cleaner. Here's what I had to fix about how it deletes files.

DEV Community: swift·Aleksandr Tk·1 day ago
#vlYciUMv
#devtoswift#devto#dev#trash#cleanup
Long article (986 words) — no AI summary yet.
Reading 0:00
15s threshold

I'm Aleksandr (AlexTkDev), and I build MacOSCleaner, a native Swift 6 and SwiftUI utility for Apple Silicon Macs on macOS 26 and later. This is a dev log, not a review.

In August I wrote about why I started the project. In October I published a longer post about a refactor, and I had to correct myself: I had described the deletion model as trash-first, and that was not how the code actually worked. Standard cleanup used FileManager.removeItem , which deletes for good. Only some paths, like the uninstaller and a few review-only categories, used trashItem .

That bothered me. A cleaner asks for Full Disk Access. If I cannot be exact about what happens to a file, I should not ship the wording. I changed the default. Cleanup, the App Uninstaller, the Disk Space Analyzer, the Duplicate Finder, and Startup Services now move items to the Trash unless you turn on an opt-in switch in Settings. Scanning still changes nothing.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.