explaingit

syntaxfear/scrub-app

Analysis updated 2026-05-18

1SwiftAudience · generalComplexity · 1/5LicenseSetup · easy

TLDR

A native Mac app that finds and safely removes the leftover files apps leave behind after deletion, grouping them by type and moving them to Trash before any permanent removal.

Mindmap

mindmap
  root((Scrub))
    What it does
      Finds app leftovers
      Groups by file type
      Moves to Trash safely
    File types found
      Preferences and caches
      Containers and logs
      WebKit and cookies
      Launch agents
    Safety
      Confirmation before removal
      Likely match flagging
      Protected folder blocks
    Features
      Leftovers view
      Disk space display
      Menu bar shortcut
      ChatGPT read-only help
    Build
      SwiftUI macOS 14
      MIT open source
      Xcode project
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Find and remove leftover caches, preferences, and containers from apps you already uninstalled from your Mac.

USE CASE 2

Completely clean an app before reinstalling it so no residual settings or data carry over.

USE CASE 3

Free up disk space by reviewing how much storage each installed app and its support files occupy.

USE CASE 4

Inspect what files a specific app has stored across your Mac without removing anything.

What is it built with?

SwiftSwiftUImacOS

How does it compare?

syntaxfear/scrub-appcollinkite/steamcontrollerkitivankuria/tafuta
Stars111
LanguageSwiftSwiftSwift
Setup difficultyeasymoderateeasy
Complexity1/53/52/5
Audiencegeneraldevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires granting Full Disk Access for complete results, macOS 14 or newer required.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Scrub is a native Mac application that helps you fully remove apps and the files they leave behind. When you delete an app by dragging it to the Trash, macOS often leaves extra files scattered across your system in folders like Application Support, Caches, Preferences, Containers, and Logs. Scrub finds those files, shows you what it found grouped by category, and lets you remove them safely. To use it, you open Scrub, sign in with Apple, Google, or email, pick an app from the list (or drag a .app file into the window), and review what Scrub found before clicking Remove. Files matched with the app's exact bundle identifier are pre-selected, files matched by name or developer are marked as "Likely" and left for you to decide. Normal files go to the Trash so you can restore them if something goes wrong. System-level files that need an administrator password are shown separately and clearly flagged. Scrub also has a Leftovers view that scans for files belonging to apps you have already deleted. This is useful if you removed an app months ago and suspect it left files behind. A few safety rules are baked in: Scrub refuses to target protected locations like your home folder, the system library, Desktop, Documents, or Downloads. It shows a confirmation screen before removing anything and will not remove shared files from a developer without flagging them first. Granting Full Disk Access is recommended so Scrub can see all the places apps store files. The app is built with SwiftUI for macOS 14 and newer, is distributed outside the Mac App Store, and is open source under the MIT license. An optional ChatGPT or Codex assistant integration provides read-only cleanup recommendations but cannot trigger any deletions itself.

Copy-paste prompts

Prompt 1
I deleted Spotify from my Mac but think it left files behind. How do I use Scrub's Leftovers view to find and remove those files safely?
Prompt 2
I want to reinstall an app completely clean. Walk me through using Scrub to remove all its files, preferences, and containers first.
Prompt 3
Scrub found files marked as 'Likely' for the app I'm removing. What does that label mean and how should I decide whether to delete them?
Prompt 4
I'm building Scrub from source in Xcode. What macOS version do I need, which scheme do I run, and how do I test the cleanup logic?

Frequently asked questions

What is scrub-app?

A native Mac app that finds and safely removes the leftover files apps leave behind after deletion, grouping them by type and moving them to Trash before any permanent removal.

What language is scrub-app written in?

Mainly Swift. The stack also includes Swift, SwiftUI, macOS.

What license does scrub-app use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is scrub-app to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is scrub-app for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub syntaxfear on gitmyhub

Verify against the repo before relying on details.