I was so lazy to use any GUI to clean my macOS. - @kud
A simple command in your shell to remove the application you want to delete and the related files as well (like preferences, logs, .dmg
, cask formula).
I used to use AppCleaner and App Eraser but the first one is not open source (and could have trackers) and the second one is not a CLI but a GUI. Here comes soap.
npm install -g @kud/soap-cli
You've got two ways to uninstall an application, via its path or via its cask name.
soap <app-path>
# ex: soap '/Applications/Android Studio.app'
warning: it won't remove the cask formula even if you've installed the app via homebrew.
soap <cask-name>
# ex: soap android-studio
It will delete for instance this kind of files:
/Applications/Android Studio.app
/Users/kud/Downloads/android-studio-ide-182.5314842-mac.dmg
/Users/kud/Library/Preferences/com.google.android.studio.plist
/Users/kud/Library/Saved Application State/com.google.android.studio.savedState
/Users/kud/Library/Application Support/google/AndroidStudio4.2
/Users/kud/Library/Caches/google/AndroidStudio4.2
/Users/kud/Library/Logs/google/AndroidStudio4.2
No worries, soap will move them into your Trash, so if something wrong has happened, you can check there your files.
Inspired from App Eraser