Skip to content

Instantly share code, notes, and snippets.

@altosjd
altosjd / OneDriveRemoverOSX.sh
Created January 13, 2025 07:24 — forked from 0187773933/OneDriveRemoverOSX.sh
Completely Uninstalls OneDrive from Mac OSX and all settings just change username
#!/bin/bash
sudo pkill -9 OneDrive
sudo rm -rf /Applications/OneDrive.app/
sudo rm /Library/LaunchAgents/com.microsoft.OneDriveStandaloneUpdater.plist
sudo rm /Library/LaunchDaemons/com.microsoft.OneDriveStandaloneUpdaterDaemon.plist
sudo rm /Library/LaunchDaemons/com.microsoft.OneDriveUpdaterDaemon.plist
sudo rm -rf /Library/Logs/Microsoft/OneDrive
sudo rm /private/var/db/receipts/com.microsoft.OneDrive-mac.bom
@altosjd
altosjd / fix_onedrive.sh
Created December 16, 2024 20:57 — forked from drblue/fix_onedrive.sh
Fix OneDrive for Mac CPU usage
#!/bin/bash
## Fix OneDrive for Mac CPU usage
##
## Seems this is still a problem 5 years later after I created this little gist.
## I have long since stopped using OneDrive (luckily), but according to
## comments below, I have added the new path for OfficeFileCache for macOS
## Mojave (10.14) and Catalina (10.15).
## Run this on macOS Mojave (10.14) and Catalina (10.15)
find ~/Library/Containers/ -type d -name OfficeFileCache -exec rm -r {} +