π Introduction
π§Ό macOS CLI to uninstall apps and scrub all their leftover files
"I was so lazy to use any GUI to clean my macOS." β @kud
soap is a macOS CLI that removes an app and all its leftover files β preferences, caches, containers, launch agents, and more. Inspired by AppCleaner and App Eraser, but open-source and terminal-native.
It works with Homebrew casks and with apps installed manually from a DMG. Everything is moved to Trash by default, and you get a checkbox list of every file before anything is removed.
π¦ Install
npm install -g @kud/soap-cliOr via Homebrew:
brew install kud/tap/soap-cliRequires macOS and Node 20+.
π Quick start
Clean an app installed via a Homebrew cask:
soap spotifyClean an app installed manually from a DMG, by path:
soap '/Applications/Slack.app'soap then scans macOS for leftover files, shows you a pre-selected checkbox
list, moves what you keep selected to Trash, and (for casks) offers to run
brew uninstall --zap.
Welcome to soap π§Ό, the app cleaner.
β Fetching cask infoβ¦
β Scanning for filesβ¦
βΉ Cleaning: Spotify
βΉ Mode: cask (spotify)
? Found 11 files. Select what to move to Trash:
β /Users/kud/Library/Application Support/Spotify
β /Users/kud/Library/Caches/com.spotify.client
β /Users/kud/Library/Preferences/com.spotify.client.plist
β ...
? Run `brew uninstall --zap spotify`? Yes
β Moved 11 file(s) to Trash.π Next steps
- Usage β modes, flags, and examples.
- What gets removed β every location soap scans and how it finds leftovers.
- Safety β Trash, confirmations, and the root-owned file fallback.
π Credits
Inspired by App Eraser and AppCleaner.