OneDrive File Issues

How to Remove an Inaccessible OneDrive Work Account on Mac

Aamir Naveed AkramAamir Naveed Akram Nov 2, 2026 869 views

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.

How to Remove an Inaccessible OneDrive Work Account on Mac
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.
Before you start

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.

Solution 1Recommended

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.

1
Quit the OneDrive Application

Click the OneDrive cloud icon in the Mac menu bar, click the Help & Settings gear icon, and select 'Quit OneDrive'.

2
Locate OneDrive in Finder

Open Finder, navigate to your 'Applications' folder, and locate the Microsoft OneDrive app.

3
Show Package Contents

Right-click (or Control-click) the OneDrive application icon and select 'Show Package Contents' from the context menu.

4
Run the Reset Script

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.

5
Restart and Reconfigure

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.

Reset the OneDrive App via Package Contents
Data Safety: Running this reset command only clears the application's configuration settings. It does not delete your locally synced OneDrive files.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website and download the free macOS version.
  2. 2. Link Cloud Services: Easily connect your preferred cloud storage accounts directly within the WPS workspace.
  3. 3. Open and Edit: Access your synced cloud documents and edit them using robust, familiar office tools.
Seamlessly integrates with multiple cloud drives without complex account conflictsFully compatible with Microsoft Word, Excel, and PowerPoint formatsLightweight application that runs smoothly and efficiently on macOS
microsoft office alternative - wps office

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.