Skip to content

kavishgr/macOS-App-Cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

macOS-App-Cleaner

The script was originally written by sunknudsen, but his repo is now archived. I didn't want to fork the entire thing, so I only took the app cleaner script to make my own changes.

Syntax

app-cleaner.sh /path/to/app.app

app-cleaner.sh /path/to/app.app --show

Usage guide

Removing an app:

~ app-cleaner.sh /Applications/The\ Unarchiver.app
Checking for running processes…
Finding app data…
/Applications/The Unarchiver.app
/Users/kavish/Library/Caches/SentryCrash/The Unarchiver
/Users/kavish/Library/HTTPStorages/com.macpaw.site.theunarchiver
/Users/kavish/Library/HTTPStorages/com.macpaw.site.theunarchiver.binarycookies
/Users/kavish/Library/Preferences/com.macpaw.site.theunarchiver.plist
/var/folders/ft/ypgt74f933qc92fvqqxyhx000000gn/C/com.macpaw.site.theunarchiver
Move app data to trash (yes or n)? yes
Moving app data to trash…
Done

Only show app data that will be removed:

~ app-cleaner.sh /Applications/The\ Unarchiver.app --show
Checking for running processes…
Finding app data…
/Applications/The Unarchiver.app
/Users/kavish/Library/Caches/SentryCrash/The Unarchiver
/Users/kavish/Library/HTTPStorages/com.macpaw.site.theunarchiver
/Users/kavish/Library/HTTPStorages/com.macpaw.site.theunarchiver.binarycookies
/Users/kavish/Library/Preferences/com.macpaw.site.theunarchiver.plist
/var/folders/ft/ypgt74f933qc92fvqqxyhx000000gn/C/com.macpaw.site.theunarchiver

The --show flag should always come after the app name and be the last argument.

Modification

  • Added SentryCrash location: $HOME/Library/Caches/SentryCrash
  • Added Services location: $HOME/Library/Services
  • Added Diagnostic Reports location: /Library/Logs/DiagnosticReports
  • Update Prompt to: Move app data to trash (yes or n)?
  • Added --show flag to only print the app data locations

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages