How To Clear Onedrive Sync Cache
Summary
This guide helps you troubleshoot and resolve: How To Clear Onedrive Sync Cache. Follow the steps below to fix the issue.
Common Causes
Instructions
OneDrive is designed to keep your files synchronised across your devices, but occasionally the local sync cache can become corrupted or bloated. You might notice that files are marked as online-only yet your hard drive space remains full, or that edits made on one device do not appear on another. Clearing the OneDrive cache forces the sync client to rebuild its local database and resynchronise your files from the cloud. This process does not delete your documents stored in OneDrive; it only refreshes how OneDrive tracks them on your computer.
After clearing the cache, OneDrive will need to re-download all your files from the cloud. Depending on the size of your library and your internet connection, this may take several hours and consume significant bandwidth. Small business teams should plan this activity outside of peak working hours to avoid disrupting productivity.
Step 1: Check for unsynced files before clearing cache
- Locate the OneDrive cloud icon in the Windows system tray (bottom-right corner of your screen). You may need to click the upward-pointing arrow to reveal hidden icons.
- Look at the sync status indicator. If you see a spinning circle or red X, there are pending changes or errors that must be resolved first.
- Open OneDrive and confirm that all files show a green tick or blue cloud icon, indicating they are synchronised.
- If any files are stuck syncing, wait until the process completes before continuing with this guide.
Step 2: Close OneDrive
- Locate the OneDrive cloud icon in the Windows system tray (bottom-right corner of your screen). You may need to click the upward-pointing arrow to reveal hidden icons.
- Right-click the OneDrive icon.
- Select Quit OneDrive. If this option is not visible, select Settings, go to the Account tab, click Unlink this PC, then close the application.
Step 3: Clear the sync cache on Windows
- Press
Windows Key + Rto open the Run dialog. - Type
%localappdata%\Microsoft\OneDrive\settings\and pressEnter. - Delete all files inside the
settingsfolder. - Navigate back to
%localappdata%\Microsoft\OneDrive\. - Open the
userfolder and delete all files inside it. - Empty your Recycle Bin to ensure the temporary files are fully removed.
Step 4: Clear the sync cache on macOS
- Quit OneDrive completely. Click the OneDrive icon in the menu bar, select Settings, go to the Account tab, and click Unlink this Mac. Then quit the application.
- Open Finder.
- In the menu bar, click Go, then select Go to Folder.
- Enter the following path:
~/Library/Application Support/OneDrive/settings/ - Delete all files inside the
settingsfolder. - Navigate to:
~/Library/Application Support/OneDrive/ - Open the
userfolder and delete all files inside it. - Empty the Trash to ensure the temporary files are fully removed.
Step 5: Restart OneDrive and resync
- On Windows, click the Start button and type
OneDrive. Open the OneDrive app from the search results. On macOS, open OneDrive from your Applications folder. - Sign in with your business or personal Microsoft account if prompted.
- Follow the setup wizard to choose which folders you wish to sync locally.
- Allow OneDrive to complete the initial synchronisation. Depending on the size of your library, this may take several hours.
Step 6: Verify sync status after restart
- Check the OneDrive status icon in the system tray (Windows) or menu bar (macOS).
- Ensure the status shows Up to date or Synchronising without error indicators.
- Open File Explorer (Windows) or Finder (macOS) and confirm that previously online-only files are re-downloading or displaying correctly.
- Verify that any folders you previously marked as Always keep on this device have resumed local synchronisation.
Alternative method: Use the OneDrive reset command
As an alternative to manually deleting cache folders, you can run the OneDrive reset command. This forces the client to restart and rebuild its local database.
- Close OneDrive completely using the steps above.
- Press
Windows Key + Rto open the Run dialog. - Type the following command and press
Enter:%localappdata%\Microsoft\OneDrive\onedrive.exe /reset - Wait for OneDrive to close and automatically restart.
- Sign in again if prompted and allow the resynchronisation to complete.
Troubleshooting
OneDrive will not start after clearing the cache
- Restart your computer and try launching OneDrive again.
- Ensure you are connected to a stable internet connection.
- Check for Windows or macOS updates, as an outdated operating system can interfere with the sync client.
- Try the OneDrive reset command described above.
Sync conflicts between devices
- OneDrive creates conflict copies when the same file is edited on two devices before synchronising. Look for files with conflict copy in the filename.
- Open each version and manually merge the changes you need.
- Save the merged version and delete the duplicate conflict copies to avoid confusion.
- Encourage team members to coordinate editing of shared files to reduce the likelihood of conflicts.
Files still showing as online-only
- Right-click the file or folder in File Explorer (Windows) or Finder (macOS).
- Select Always keep on this device if you need local access.
- Verify that your organisation's storage policies do not enforce online-only status for specific folders.
Changes still not syncing across devices
- Confirm that you are signed into the same Microsoft account on all devices.
- Check the OneDrive status icon in the system tray or menu bar for any error messages.
- Ensure you have sufficient available storage in your OneDrive account.
- If files fail to resync after following this guide, Open a Ticket for assistance from our support team.
Interpreting common OneDrive error codes
- Error 0x8004de40: Often indicates a connectivity or sign-in issue. Verify your internet connection and sign in again.
- Error 0x8004def6: Typically means OneDrive is unable to sync because the file path is too long. Shorten the folder structure or move files closer to the root directory.
- Error 0x80070005: Usually a permissions issue. Ensure your user account has full control over the local OneDrive folder.
- If you encounter an error code not listed here, note the code and Open a Ticket so our team can investigate.
Still Having Issues?
💻 Open a Ticket