TechBuzzPro

How to Clear OneDrive Sync Cache

· 4 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can clear the OneDrive sync cache to resolve syncing issues, reduce disk usage, or fix corrupted file metadata. This process removes temporary sync data stored locally on your Windows PC but does not delete your actual files in the cloud or synced folders. Before proceeding, ensure your important files are fully synced to the OneDrive cloud by checking the OneDrive icon in the system tray. Clearing the cache forces OneDrive to rebuild its local database, which can fix glitches without affecting your personal files.

What You'll Need

  • A Windows PC with OneDrive installed (included with Windows 10 and 11)
  • Administrator rights to close and restart system processes
  • An active internet connection (required after clearing cache for re-sync)
  • Time to allow OneDrive to re-sync, especially if you have many files

Step-by-Step

  1. Save any open work and close all applications that may be using files in your OneDrive folder, such as Office apps or browsers with open documents.
  2. Locate the OneDrive icon in the system tray (bottom-right corner of the taskbar, near the clock). If you don’t see it, click the upward arrow to reveal hidden icons.
  3. Right-click the OneDrive cloud icon and select Close OneDrive from the context menu. Confirm if prompted.
  4. Press Windows + R to open the Run dialog box. Type %localappdata%\Microsoft\OneDrive\ and press Enter. This opens the local OneDrive application data folder.
  5. Inside this folder, look for a subfolder named SyncEngineDatabase (or SyncDatabase in older versions). This folder contains the sync cache database files.
  6. Right-click the SyncEngineDatabase folder and select Delete. If prompted for administrator permission, click Continue.
  7. (Optional) Also delete the Diagnostics folder in the same directory if you're troubleshooting persistent issues, as it contains logs that may be corrupted.
  8. After deletion, press Windows + R again, type explorer shell:AppsFolder\Microsoft.OneDrive_8wekyb3d8bbwe!App, and press Enter. This locates the OneDrive app entry.
  9. Double-click the OneDrive shortcut to restart the application. Alternatively, navigate to Settings > Apps > Installed apps, find OneDrive, and click Launch.
  10. OneDrive will start and begin rebuilding the sync database. This may take several minutes to hours depending on the number of files. A progress indicator will appear in the system tray.
  11. Wait for the sync to complete. You can monitor progress by right-clicking the OneDrive icon and selecting View sync problems or checking file status in File Explorer.

Common Mistakes

  • Deleting the wrong folder: Do not delete the entire OneDrive folder in %localappdata%. Only remove the SyncEngineDatabase subfolder. Deleting the main folder may require a full reinstall.
  • Not closing OneDrive first: If OneDrive is still running, you may not be able to delete the cache folder due to file locks.
  • Clearing cache unnecessarily: Only clear the sync cache if you’re experiencing sync errors, delays, or file status mismatches. Routine clearing offers no benefit.
  • Assuming files are lost: The cache is not your data. Files in your OneDrive folder remain intact. Sync status will refresh after the database rebuilds.

Tips

  • Before clearing the cache, verify your internet connection is stable to avoid sync interruptions during the rebuild.
  • If you have a large number of files, plan to clear the cache during a time when you don’t need immediate access to synced documents.
  • Use the OneDrive desktop app settings to pause syncing temporarily before restarting, giving you control over when large downloads begin.
  • Check the OneDrive status page (via the system tray icon) before troubleshooting—outages or maintenance can mimic sync issues.
  • After clearing the cache, avoid making major file changes until the sync engine reports everything is up to date.

Troubleshooting

If OneDrive fails to restart after clearing the cache, go to Settings > Apps > Installed apps, find OneDrive, and click the three dots to select Advanced options > Repair. If that doesn’t work, choose Reset—note this removes all settings but preserves your files. If the SyncEngineDatabase folder doesn’t exist, your version may store data elsewhere; in this case, uninstalling and reinstalling OneDrive may be necessary. If sync stalls or shows errors, ensure you’re signed in with the correct Microsoft account and that file names don’t contain invalid characters like colons or asterisks. If problems persist, restart your PC and let OneDrive launch automatically at startup.

Frequently Asked Questions

Does clearing OneDrive cache delete my files?

No. The cache contains only sync metadata, not your actual files. Your documents, photos, and folders remain safe in the cloud and on your device.

How often should I clear the OneDrive sync cache?

Only when necessary—such as when files won’t sync, show incorrect status, or OneDrive is unresponsive. Routine clearing is not recommended.

Can I clear the cache on Mac or mobile?

No. This method is for Windows only. Mac users can reset OneDrive via the menu bar icon, but mobile apps do not expose cache controls.

Will clearing the cache speed up OneDrive?

Temporarily, it may slow things down as OneDrive rechecks all files. Long-term, it can improve reliability if the old cache was corrupted.

What if the SyncEngineDatabase folder is missing?

It may be named differently or located in a system-protected area. Try updating OneDrive or reinstalling it through the Microsoft Store.

Do I need to sign in again after clearing the cache?

No. Your account remains linked. OneDrive will sync using your existing credentials once the database rebuilds.