How to disconnect OneDrive on macOS from an extra account that doesn’t exist anymore.
On my work computer I used to have two OneDrive accounts, one Business and one that Microsoft considered “Personal” even though it was used for work files on my work address. Eventually I deleted the extra “personal” account since we were consolidating.
But every time I restarted the MacBook, it would try to connect to both OneDrive accounts for syncing. I could quit the extra instance of OneDrive and forget about it until the next reboot, but there’s no way to disconnect it without logging in – and the account didn’t exist anymore.
Searching wasn’t helpful, since mostly I found info on how to disconnect from an account that did still exist. Or how to edit the registry. Not much help on a Mac. Even uninstalling and reinstalling OneDrive didn’t do it, because it just pulled both sets of credentials out of my keychain again.
I finally found an answer in one of the newer answers on this forum thread. The main answer wasn’t helpful, but it turns out that, hidden inside the resource folder of the OneDrive app package, there’s a command to reset OneDrive! Yeah, you have to reconnect to the account that does still exist, but that’s both easy and fast!
- Close OneDrive
- Find OneDrive in the Applications Folder
- Right-click on it and choose Show Package Contents
- Go into the Contents/Resources folder
- The file will be either ResetOneDriveApp.command or ResetOneDriveAppStandalone.command. Double-click on it to run the command.
- Go back to OneDrive and reconfigure the account that you do still have!
Thanks, Nevyn42, for solving the problem!