How to Safely Remove OneDrive Files Before Reinstalling on Mac
Question details
The user needs the correct procedure to safely remove OneDrive-related files on a Mac to perform a clean reinstallation without affecting other Microsoft applications.

- Product
- Microsoft OneDrive
- Device & OS
- macOS Sonoma
- Scenario
- Reinstalling OneDrive and clearing associated cache files after an application or system reset.
- Observed behavior
- The user is seeking to identify exactly which files to delete to ensure a clean slate for OneDrive, avoiding the unnecessary removal of files required by other Microsoft 365 apps.
Ensure all your important local files are fully synced to the cloud or backed up to an external drive, and verify that you have your Microsoft 365 account credentials ready before unlinking.
Unlink and Remove Specific OneDrive Files
This is the safest method to remove OneDrive without disrupting other Microsoft 365 apps like Word or Teams.
Do not delete every file containing the word 'Microsoft' from your Library. You only need to target specific OneDrive container files to ensure a clean reinstallation.
Click the OneDrive cloud icon in the top menu bar, go to Settings (gear icon) > Preferences > Account, and click 'Unlink this Mac'.
Click the OneDrive cloud icon again, select the Settings gear icon, and choose 'Quit OneDrive'.
Open Finder, navigate to the Applications folder, locate the OneDrive app, and drag it to the Trash.
In Finder, press Command + Shift + G, type '~/Library/Containers/' and delete the 'com.microsoft.OneDrive-mac' folder. Also check '~/Library/Group Containers/' and remove any folder specifically named 'UBF8T346G9.OneDriveStandaloneSuite' or similar.

Perform a Complete Microsoft Office Removal (If Necessary)
Use this method only if you are experiencing widespread issues across multiple Microsoft applications (like Teams or Office) in addition to OneDrive.
Try WPS Office for a Lightweight Mac Experience
If you are experiencing persistent issues with Microsoft 365 installations or excessive cache files on your Mac, consider switching to WPS Office. It provides a lightweight, all-in-one suite that is highly compatible with Microsoft formats without the heavy background syncing.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer specifically designed for macOS.
- 2. Install the Application: Open the downloaded .dmg file and drag the WPS Office icon into your Applications folder.
- 3. Launch and Enjoy: Open WPS Office from Launchpad, sign in to activate your free cloud storage, and seamlessly open your existing Office documents.

Frequently Asked Questions
Do I need to uninstall all Microsoft apps to fix a OneDrive issue?
No. Unless you are also experiencing crashes or sync issues with Word, Excel, or Teams, you only need to remove the OneDrive application and its specific 'com.microsoft.OneDrive' container files.
What happens to my local files when I unlink OneDrive on my Mac?
Unlinking simply disconnects your Mac from the cloud. Your files remain safe online, and any files you previously marked as 'Always keep on this device' will stay in your local OneDrive folder.
How do I find the hidden Library folder on macOS Sonoma?
Open Finder, click 'Go' in the top menu bar, hold down the 'Option' key on your keyboard, and click 'Library' when it appears in the dropdown menu.
Why did a business installation include OneDrive without a separate download?
Microsoft 365 Education and Enterprise packages often bundle all core applications (Word, Excel, Teams, OneDrive) into a single unified installer, meaning installing the suite automatically installs and configures OneDrive.




