Skip to content

Instantly share code, notes, and snippets.

@kwvg
Last active May 29, 2022 17:47
Show Gist options
  • Save kwvg/2681fc37650fdaccced7bd5eb483a4c2 to your computer and use it in GitHub Desktop.
Save kwvg/2681fc37650fdaccced7bd5eb483a4c2 to your computer and use it in GitHub Desktop.
Program complete uninstallation script
#!/usr/bin/env bash
remove() {
entry="$1"
echo -ne "Removing $entry ["
sudo rm -rf "$entry"
if [[ ! -e "$entry" ]]; then
echo -ne "OK"
else
echo -ne "FAILED"
fi
echo -e "]"
}
# VMWare Fusion
remove "/etc/paths.d/com.vmware.fusion.public"
remove "/private/var/db/vmware"
remove "/private/var/root/Library/Logs/VMware"
remove "/private/var/run/vmware"
remove "/private/var/run/VMware Fusion Services.lock"
remove "/private/var/run/VMware Fusion Services.sock"
remove "/private/var/root/Library/Preferences/VMware Fusion"
remove "/var/db/BootCaches/*/app.com.vmware.fusion.playlist"
remove "/Applications/VMware Fusion.app"
remove "/Library/Application Support/VMware"
remove "/Library/Application Support/VMware Fusion"
remove "/Library/Preferences/VMware Fusion"
remove "/Library/Logs/VMware/"
remove "/Library/Logs/VMware Fusion Services.log"
remove "/Library/Logs/DiagnosticReports/vmware*"
remove "$HOME/Library/Application Support/VMware Fusion"
remove "$HOME/Library/Application Support/VMware Fusion Applications Menu"
remove "$HOME/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.vmware.fusion.sfl"
remove "$HOME/Library/Caches/com.vmware.fusion"
remove "$HOME/Library/Preferences/VMware Fusion"
remove "$HOME/Library/Logs/VMware"
remove "$HOME/Library/Logs/VMware Fusion"
remove "$HOME/Library/Logs/VMware Fusion Applications Menu"
remove "$HOME/Library/Preferences/VMware Fusion"
remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist"
remove "$HOME/Library/Preferences/com.vmware.fusion.plist"
remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist"
remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist"
remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist.lockfile"
remove "$HOME/Library/Preferences/com.vmware.fusion.plist"
remove "$HOME/Library/Preferences/com.vmware.fusion.plist.lockfile"
remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist"
remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist.lockfile"
remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist"
remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist.lockfile"
# Carbon Copy Cloner
remove "/Library/Application Support/com.bombich.ccc"
remove "/Library/LaunchDaemons/com.bombich.ccchelper.plist"
remove "/Library/PrivilegedHelperTools/com.bombich.ccchelper"
remove "$HOME/Library/Application Support/com.bombich.ccc"
remove "$HOME/Library/Application Support/CCC Stats Service"
remove "$HOME/Library/Caches/com.bombich.ccc"*
remove "$HOME/Library/Caches/com.bombich.ccc.stats"
remove "$HOME/Library/Caches/com.bombich.ccc.useragent"
remove "$HOME/Library/Cookies/com.bombich.ccc.binarycookies"
remove "$HOME/Library/Preferences/com.bombich.ccc.plist"
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment