Remove an Old OneDrive Work Folder from a Mac
Question details
Remove a leftover OneDrive work folder from a Mac after leaving an organization.

- Product
- Microsoft OneDrive for Mac
- Device & OS
- macOS
- Scenario
- An old work account is no longer needed, but its OneDrive folder remains on the Mac.
- Observed behavior
- macOS displays a permissions error when the user tries to delete the folder.
Confirm that the folder belongs to the old work account and copy any files you are authorized to keep to another location. Check that the old account is unlinked before deleting the folder so your deletion does not sync to OneDrive.
Unlink the OneDrive account and check folder permissions
Use this method to remove the local folder through Finder after disconnecting the old work account.
Click the OneDrive cloud icon in the menu bar, open Settings or Preferences, and select the Account tab. Find the old work account and choose Unlink this Mac. If it is no longer listed, confirm that the folder is not syncing with another account.
In Finder, locate the old OneDrive work folder, select it, and choose File > Get Info.
Expand Sharing & Permissions and check whether your current macOS user has Read & Write access. If necessary, click the lock and authenticate, then change your user's privilege to Read & Write if you are authorized to do so.
Close Get Info, then Control-click the folder in Finder and choose Move to Trash. Empty the Trash when you are sure you no longer need its contents.

Remove the local folder with Terminal as a last resort
Use this only if the account is unlinked, you are authorized to remove the folder, and Finder still cannot delete it.
Work with Your Office Files in WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. Open compatible Microsoft Office files as you move to a new workspace. WPS Office does not unlink OneDrive accounts or fix macOS folder permissions.

Frequently Asked Questions
Will unlinking OneDrive delete my work files from the cloud?
Unlinking disconnects the account from the Mac; it does not itself delete the cloud files. Check the Account tab in OneDrive Settings or Preferences to confirm the old account is unlinked before removing the local folder.
Why can't I delete the folder even though I have Read & Write access?
You may also need permission to modify the folder that contains it. Select the parent folder in Finder, choose File > Get Info, and check Sharing & Permissions. Contact an administrator if the Mac or folder is managed.
Can I recover a folder deleted with sudo rm -rf from the Trash?
No. The command bypasses the Trash and permanently deletes the specified local folder. Verify the full path in Terminal before pressing Return.
What if the old work account no longer appears in OneDrive settings?
Open the OneDrive menu bar icon and check Settings or Preferences > Account. If the account is absent, confirm the folder is not syncing with another account before checking its permissions and deleting it in Finder.




