How to Remove an Unlinked OneDrive Work Folder from a Mac
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.
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.
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.
Click the OneDrive cloud icon in the Mac menu bar, click the gear icon, and select 'Quit OneDrive'.
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.
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'.
Restart your Mac and navigate back to the CloudStorage folder. Attempt to delete the old work folder again.
Contact Microsoft Support for Sync-Root Removal
If local resets fail, the issue may be deeply tied to macOS privacy permissions requiring specialized commands to remove.
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. Download WPS Office: Visit the official WPS website and download the Mac version.
- 2. Install the Application: Open the downloaded package and drag WPS Office into your Applications folder.
- 3. Open Your Files: Double-click any existing Microsoft Office document to open and edit it seamlessly in 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.




