soap-cli

πŸ‘‹ 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-cli

Or via Homebrew:

brew install kud/tap/soap-cli

Requires macOS and Node 20+.

πŸš€ Quick start

Clean an app installed via a Homebrew cask:

soap spotify

Clean 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.

On this page