A Microsoft file hosting and synchronization service.
The duplicate folders with “2” after the name are typically caused by sync conflicts or by having more than one OneDrive instance/configuration on the Mac after migration.
Use these steps to stop the duplication and clean it up.
- Check for two OneDrive versions on the Mac
- On the menu bar, select the OneDrive cloud icon.
- If a message appears saying the same account is syncing on another version of OneDrive, follow these steps:
- In the sync window, select Show in Finder in that message.
- A Finder window opens at /Library/CloudStorage.
- Double‑click each OneDrive folder shown there.
- At the top of each Finder window, look for a banner with a Delete button.
- If a banner with Delete appears on one of them, select Delete to remove that folder. This is the old OneDrive instance left over from migration.
- If no banner appears on any folder:
- Open OneDrive Preferences from the menu bar icon.
- Go to the Account tab and select Unlink this Mac.
- Exit OneDrive.
- Delete OneDrive from Applications.
- Reinstall OneDrive (either from the Mac App Store or from OneDrive.com).
- Start OneDrive and sign in again.
- Clear cached credentials on the Mac Clearing cached credentials can stop OneDrive from creating duplicate items with modified names.
- Open Spotlight, type Keychain Access, and open it (or open it from Applications > Utilities).
- In Keychain Access, search for OneDrive.
- Delete the entry named OneDrive Cached Credential.
- Start OneDrive again and sign in if prompted.
- Re-link OneDrive cleanly After clearing credentials, ensure the Mac is linked to a single, correct OneDrive folder.
- Use Spotlight to open OneDrive.
- Sign in.
- When prompted that a OneDrive folder already exists, choose Use this folder (unless intentionally moving it).
- Allow OneDrive to complete a full sync.
- Handle existing duplicate folders Once only one OneDrive instance is running and sync is healthy:
- In Finder, compare the original and the “2” folders.
- Decide which copy to keep (for example, the one with the latest changes).
- Delete the unwanted duplicate from the OneDrive folder in Finder (it will also be removed from OneDrive online and other devices), or move it outside the OneDrive folder if it should remain only on the Mac.
If sync conflicts continue, rename frequently edited folders/files to unique names to reduce conflicts.
References: