At work we recently changed domain names and ever since my Mac’s OneDrive syncing utility would stop syncing and error when I tried to log back in. To fix the issue our support technician needed to reset OneDrive. I learned that OneDrive comes with a .command file that can be run to reset OneDrive.
Use this with caution! While this script does not delete any of your OneDrive files it does completely reset OneDrive on your Mac.
- Open ~/Applications
- Secondary Click on OneDrive.app and choose “Show Package Contents”
- Navigate to Contents/Resources/
- Double click on ResetOneDriveStandalone.command
Reading through the source of the file you can see that this process will delete the cache and log files that OneDrive creates in various locations on your Mac as well as any plist files that store your preferences. So it is one step better than trashing the app and reinstalling because it deletes files in other locations outside of your Applications folder.
I hope this helps you if you need to reset OneDrive on a Mac.