A Microsoft file hosting and synchronization service.
Open the former OneDrive folder in ~/Library/CloudStorage and use Finder’s Delete button if macOS identifies it as a stale File Provider location.
Remove the stale folder through Finder
- In Finder, select Go > Go to Folder.
- Enter:
~/Library/CloudStorage - Open the folder belonging to the former employer.
- Look at the top of the Finder window for a message saying that the associated OneDrive application cannot be found.
- If that message includes Delete, click it. Microsoft documents this button as the removal method for a folder belonging to a previous OneDrive version that is no longer installed.^1^
- Empty the Trash only after checking that the folder contains nothing you need. Any files stored only locally will be permanently lost.
You have already unlinked the account, uninstalled OneDrive, restarted, and tested Safe Mode, so repeating ordinary Finder deletion is unlikely to add anything.
If Finder does not show Delete
A closely matching case involving undeletable OneDrive folders under CloudStorage was resolved by running the OneDrive uninstall a second time, after which Finder allowed the remnants to be deleted.^2^
Because OneDrive is already gone:
- Reinstall the current OneDrive for Mac application.
- Do not reconnect the inaccessible former-employer account.
- Remove OneDrive again by dragging Applications > OneDrive to the Trash—the documented macOS uninstall action.^3^
- Restart the Mac.
- Return to
~/Library/CloudStorage, open the old folder, and check again for the Finder Delete button or try moving the folder to the Trash.
This is a case-reported workaround, not a guaranteed cleanup mechanism.
If it remains locked
Do not use sudo rm -rf or manually delete File Provider databases. The folder may be an orphaned macOS File Provider entry rather than an ordinary directory, and unsupported forced deletion can affect other cloud-storage providers.
Contact Apple Support and ask them to investigate an orphaned File Provider domain under ~/Library/CloudStorage after its provider application was removed. Include these facts:
- The work account was unlinked.
- OneDrive was uninstalled.
- Restart and Safe Mode deletion both failed.
- Finder provides no error and, if applicable, no Delete banner.
- The folder accounts for approximately 170 GB.
The closely matching case also involved Apple Support before the additional uninstall released the Finder entries.^2^
References