How to Remove an Inaccessible OneDrive Work Account on Mac
Question details
The user needs to remove a disabled former work OneDrive account from their MacBook that continuously prompts for sign-in and blocks access to its preferences.

- Product
- Microsoft OneDrive
- Device & OS
- macOS
- Scenario
- Managing multiple OneDrive accounts on a Mac where one account is disabled by a former employer.
- Observed behavior
- OneDrive repeatedly asks for sign-in credentials for the disabled account, and the user cannot open the account preferences to remove it normally.
Ensure you have the login credentials for your active, accessible OneDrive account nearby, as this process will require you to sign back in from scratch.
Reset the OneDrive App via Package Contents
This method clears the stored configuration data, allowing you to bypass the inaccessible preferences menu and set up only your active account.
When a former employer disables your work account, OneDrive may continuously prompt for a login, blocking access to the settings where you would normally unlink the account. Running the built-in reset script forces OneDrive to clear these account ties.
Click the OneDrive cloud icon in the Mac menu bar, click the Help & Settings gear icon, and select 'Quit OneDrive'.
Open Finder, navigate to your 'Applications' folder, and locate the Microsoft OneDrive app.
Right-click (or Control-click) the OneDrive application icon and select 'Show Package Contents' from the context menu.
Navigate to 'Contents' > 'Resources'. Double-click the file named 'ResetOneDriveApp.command' (or 'ResetOneDriveAppStandalone.command' if you are using the standalone version). A Terminal window will open and execute the reset.
Once the script finishes running in Terminal, open OneDrive again from your Applications folder. You can now sign in and configure only your currently active and accessible account.

Manage Your Cloud Files Easily with WPS Office
While troubleshooting Microsoft OneDrive accounts on Mac, consider switching to WPS Office. It's a lightweight, free alternative that offers seamless cloud integration, familiar interfaces, and robust compatibility with all Microsoft Office file formats.
- 1. Download WPS Office: Visit the official WPS website and download the free macOS version.
- 2. Link Cloud Services: Easily connect your preferred cloud storage accounts directly within the WPS workspace.
- 3. Open and Edit: Access your synced cloud documents and edit them using robust, familiar office tools.

Frequently Asked Questions
Will resetting OneDrive delete my locally synced files?
No, running the reset command only clears the application settings and account configurations. Your previously synced files will remain perfectly intact in their respective folders on your Mac.
Why can't I just click 'Unlink this Mac' in the settings?
When a work account is disabled by an administrator, the continuous authentication prompt often blocks access to the OneDrive Preferences menu entirely, preventing you from clicking the standard 'Unlink this Mac' button.
What if Terminal says I don't have permission to run the command?
You may need administrator privileges on your Mac. Ensure you are logged into a Mac admin account. If the issue persists, open Terminal, type 'chmod +x ' (with a space at the end), drag the reset command file into the window, and press Enter to make it executable.




