logo
search
OneDrive File Issues

How to Remove an Unlinked OneDrive Work Folder from a Mac

Maira MehtabMaira Mehtab Sep 27, 2026 869 views

Question details

The user needs to delete a former employer's OneDrive folder from macOS CloudStorage but is encountering permissions issues.

Product
OneDrive
Device & OS
macOS
Scenario
Attempting to clean up local Mac storage by deleting an old, unlinked organizational OneDrive folder without affecting personal OneDrive files.
Observed behavior
macOS prevents deletion of the folder, returning an 'Operation not permitted' error due to a lingering OneDrive sync-root registration.
Before you start

Verify that your former work account is completely unlinked in OneDrive settings and back up any local files from your personal OneDrive accounts to prevent accidental data loss during troubleshooting.

Solution 1Recommended

Reset the OneDrive Application on macOS

Resetting the OneDrive application can clear problematic sync-root registrations that block folder deletion.

Resetting OneDrive clears local application data and sync states, which often resolves macOS permissions issues tied to old work accounts. Note that this may require you to sign back into your personal accounts and reconfigure sync settings after the process.

1
Quit OneDrive

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

2
Unlink Personal Accounts (Optional)

If you have personal accounts synced, go to OneDrive Preferences > Account, and click 'Unlink this Mac' for your personal accounts to protect their sync state.

3
Run the Reset Script

Open Finder, go to the Applications folder, right-click on the OneDrive app, and select 'Show Package Contents'. Navigate to Contents > Resources and double-click 'ResetOneDriveApp.command'.

4
Restart and Delete

Restart your Mac and navigate back to the CloudStorage folder. Attempt to delete the old work folder again.

Account Remnants: Even after successfully resetting and deleting the folder, the old company login might still appear in the login window during your next setup.
Free Microsoft Office alternative

Experience a Seamless and Lightweight Office Alternative

Tired of dealing with complicated sync errors and persistent organizational folders? Try WPS Office, a comprehensive, free, and lightweight suite that offers robust document creation without the heavy syncing overhead of traditional software.

  1. 1. Download WPS Office: Visit the official WPS website and download the Mac version.
  2. 2. Install the Application: Open the downloaded package and drag WPS Office into your Applications folder.
  3. 3. Open Your Files: Double-click any existing Microsoft Office document to open and edit it seamlessly in WPS Office.
Fully compatible with Microsoft Office formats, including Word, Excel, and PowerPoint.Lightweight macOS application that doesn't burden your system's storage or memory.Easy local and cloud file management without restrictive macOS sync-root errors.Free to download and use with a clean, familiar interface for quick onboarding.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get an 'Operation not permitted' error when deleting a OneDrive folder on Mac?

This happens because the folder is registered as a 'sync root' in macOS CloudStorage. The operating system locks the permissions on this folder to prevent accidental deletion of active cloud files, even after the account is unlinked.

Can I remove a work OneDrive folder without affecting my personal OneDrive?

Yes, but if you need to reset the OneDrive application to fix the permissions, it is highly recommended to manually unlink your personal accounts first. This ensures their local files and sync states are protected during the reset.

What is the CloudStorage folder on macOS?

The CloudStorage folder is a dedicated directory introduced by Apple for cloud service providers (like OneDrive and Google Drive). It uses the File Provider framework to seamlessly integrate cloud files into the Finder without downloading them entirely to your hard drive.