TechBuzzPro

How to Clear OneDrive Cache on Windows 10

· 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

Clearing the OneDrive cache resolves synchronization errors, fixes file not syncing issues, and frees up disk space when local copies are stuck or corrupted. This process resets the local database without deleting your files from the cloud, requiring only that you sign back into your Microsoft account afterward.

What You'll Need

  • A Windows 10 PC with OneDrive installed
  • Administrative privileges (sometimes required for folder deletion)
  • Your Microsoft account login credentials

Step-by-Step

  1. Exit OneDrive Completely: Locate the blue cloud icon in the system tray (bottom-right corner near the clock). Right-click the icon and select Quit OneDrive. If the icon is hidden, click the small upward arrow (^) to reveal it first. Verify it has closed by checking Task Manager (Ctrl+Shift+Esc) under the Processes tab; OneDrive should not be listed.
  2. Navigate to the AppData Folder: Press the Windows Key + R to open the Run dialog. Type %localappdata% and press Enter. This opens the LocalAppData folder, which stores temporary application data.
  3. Locate the OneDrive Cache Directory: Inside the opened folder, find and open the Microsoft folder. Within that, locate and open the OneDrive folder. This path contains the local cache files responsible for sync status.
  4. Delete the Setup Folder: Inside the OneDrive folder, you will see a subfolder named Setup (or sometimes Setup.Exe depending on version context, but typically just the folder content matters). Delete this entire Setup folder. Do not delete the main OneDrive folder itself, only the contents within the Setup directory. If prompted for administrative permission, confirm the action.
  5. Restart OneDrive: Go back to your desktop and double-click the OneDrive shortcut in your Start Menu, or search for "OneDrive" in the taskbar search box and launch it. Alternatively, navigate to C:\Program Files\Microsoft Office\Office16 (or similar version number) and run OneDrive.exe if the shortcut fails.
  6. Sign In and Re-sync: Upon launching, OneDrive will prompt you to sign in. Enter your Microsoft account credentials. The application will begin re-downloading metadata and re-establishing connections with your synced folders. Wait for the sync icon to turn into a stable blue checkmark.

Common Mistakes

The most frequent error users make is deleting the wrong folder. Ensure you are deleting the Setup folder inside %localappdata%\Microsoft\OneDrive, not the actual user files stored in your OneDrive library. Deleting the library folder would remove local copies of your documents. Another mistake is failing to fully quit OneDrive before attempting to delete cache files; if the process is running in the background, Windows will lock the files, preventing deletion and causing an "Access Denied" error.

Tips

If you frequently encounter sync issues, consider using the Choose Folders feature in OneDrive settings to exclude large, rarely used folders from syncing locally. This reduces the amount of cache data generated. Additionally, ensure your Windows 10 installation is up to date, as Microsoft often releases patches that resolve underlying sync engine bugs. Regularly restarting your computer can also help clear temporary glitches before resorting to manual cache clearing.

Troubleshooting

If OneDrive fails to start after clearing the cache, try resetting the application via Command Prompt. Open Command Prompt as Administrator, type onedrive /reset and press Enter. If the screen flickers briefly, the reset worked. If nothing happens, manually run onedrive /reset again. For persistent errors, uninstall OneDrive completely via Settings > Apps, then download the latest version from the official Microsoft website. Avoid third-party uninstallers. If the sync icon shows a red X, check your internet connection and ensure no files are open in another program, as locked files cannot sync.

Frequently Asked Questions

Will clearing the cache delete my files?

No. Clearing the cache only removes local temporary files and sync metadata. Your files remain safe in the cloud. When OneDrive restarts, it will re-download the necessary metadata and restore your folder structure locally.

Why does OneDrive keep asking me to sign in?

This usually indicates a corrupted authentication token in the cache. Clearing the cache forces a fresh login attempt. If it persists, check for Windows updates or contact Microsoft Support, as it may be a deeper account issue.

Can I delete the entire OneDrive folder in AppData?

It is safer to only delete the Setup folder. Deleting the entire parent folder might require a full reinstall of the application to function correctly, whereas clearing Setup is a targeted fix.

How long does re-syncing take?

Re-syncing speed depends on your internet connection and the number of files. Small libraries may take minutes; large libraries with thousands of files could take hours. Monitor the sync icon for progress.

Does this work on Windows 11?

Yes. The file path %localappdata%\Microsoft\OneDrive\Setup remains valid in Windows 11. The steps are identical across both operating systems.