User Agents

Web browsers and everyday web tech, explained

How to Reset OneDrive Cache: Clear Local Data

· 5 min read · Cookies and Cache

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

Resetting the OneDrive cache clears corrupted or outdated local data that may be causing sync issues, slow performance, or errors in file syncing. This process does not delete your files from the cloud or your device but forces OneDrive to rebuild its local database, often resolving persistent problems. Before starting, ensure your important files are synced and backed up, and close any apps using OneDrive files to avoid conflicts during the reset.

What You'll Need

  • A Windows PC with OneDrive installed (this guide applies to Windows 10 and 11)
  • Administrator privileges on the device
  • Stable internet connection (to re-sync files after reset)
  • Time to allow OneDrive to re-sync, especially if you have a large number of files

Step-by-Step

  1. Close OneDrive: Right-click the OneDrive cloud icon in the system tray (near the clock) and select Close OneDrive. If the icon isn’t visible, press Ctrl + Shift + Esc to open Task Manager, find Microsoft OneDrive under Processes, select it, and click End Task.
  2. Open Run Dialog: Press Windows Key + R to open the Run dialog box.
  3. Launch Command Prompt as Administrator: Type cmd, then press Ctrl + Shift + Enter to run Command Prompt with administrator rights. Click Yes if prompted by User Account Control.
  4. Locate OneDrive Installation Path: OneDrive typically installs in one of two locations. For most users, it’s:
    %localappdata%\Microsoft\OneDrive\onedrive.exe
    For Microsoft 365 subscribers using the machine-wide installer, it might be:
    %programfiles%\Microsoft OneDrive\onedrive.exe
    If unsure, open File Explorer and navigate to both paths to confirm which contains the OneDrive executable.
  5. Stop OneDrive via Command Line: In the elevated Command Prompt, enter the following command (adjust path if needed) and press Enter:
    "%localappdata%\Microsoft\OneDrive\onedrive.exe" /reset
    If using the machine-wide version, use:
    "%programfiles%\Microsoft OneDrive\onedrive.exe" /reset
    No confirmation message appears, but OneDrive will process the command silently.
  6. Wait for Reset to Complete: The reset process may take a few seconds to a minute. There is no progress bar. Avoid restarting or using OneDrive during this time.
  7. Restart OneDrive: Press Windows Key + R, type:
    "%localappdata%\Microsoft\OneDrive\onedrive.exe"
    or, for machine-wide install:
    "%programfiles%\Microsoft\OneDrive\onedrive.exe"
    Press Enter. OneDrive will restart and begin syncing files from scratch using the refreshed cache.
  8. Monitor Sync Status: Check the system tray icon. It will show syncing activity. Allow time for all files to sync, especially if you have a large library. Do not make major file changes during initial sync.

Common Mistakes

  • Not running Command Prompt as administrator: The /reset command requires elevated permissions. Without it, the command fails silently.
  • Using the wrong OneDrive path: Confusing the user-specific and machine-wide installations leads to the command not working. Verify the correct path based on your installation.
  • Restarting OneDrive too soon: Interrupting the reset before it completes can cause sync issues. Wait at least 30 seconds after running the command.
  • Editing files during sync: Making changes while OneDrive rebuilds its cache can result in duplicates or conflicts.
  • Assuming files are deleted: The reset clears only the local sync database, not your actual files. Your data remains safe in the cloud and on your device.

Tips

  • Check your OneDrive version first: Open Task Manager, go to the Details tab, and look for OneDrive.exe. Right-click and select Properties to see the file path and version.
  • Use full paths in Command Prompt: Instead of environment variables, you can paste the full path (e.g., C:\Users\YourName\AppData\Local\Microsoft\OneDrive\onedrive.exe) to avoid syntax errors.
  • Monitor disk usage: After reset, OneDrive may temporarily use more bandwidth and disk I/O as it re-downloads metadata. Avoid heavy system tasks during this period.
  • Verify sync health afterward: Open the OneDrive settings (right-click tray icon > Settings > Sync and reset) and check for any error messages.
  • Reset selectively: Only perform this if you’re experiencing sync errors, stuck files, or performance issues. Routine resets are unnecessary.

Troubleshooting

If the OneDrive cache reset doesn’t work or causes issues:

  • Command not recognized: Ensure you’re using the correct path and that OneDrive is installed. Reinstall OneDrive if the executable is missing.
  • OneDrive won’t restart: Manually navigate to the installation folder and double-click onedrive.exe to launch it.
  • Sync stuck after reset: Wait at least 10–15 minutes. If still stuck, restart your PC and let OneDrive start automatically.
  • Files appear missing locally: This is temporary. OneDrive will re-download them as it syncs. Ensure you’re connected to the internet and signed in.
  • Multiple OneDrive instances: If you see more than one cloud icon, you may have both personal and work/school accounts. Reset each separately using their respective processes.
  • Access denied errors: Confirm you’re using an administrator account and that no group policies are blocking OneDrive in your organization.

Frequently Asked Questions

Does resetting OneDrive cache delete my files?

No. The cache reset only clears the local sync database. Your files remain safe in the cloud and on your device.

How long does it take for OneDrive to sync after reset?

It depends on your internet speed and the number of files. Small libraries may sync in minutes; large ones can take hours.

Can I use OneDrive while the cache resets?

No. OneDrive must be closed during the reset. Avoid accessing synced folders until syncing resumes.

Will I lose offline files after reset?

No. Files marked for offline access remain on your device. OneDrive re-indexes them during the new sync.

Do I need to sign in again after reset?

Usually not. Your account stays linked, but you may need to re-authenticate if there are credential issues.

Is resetting the cache the same as unlinking OneDrive?

No. Unlinking removes your account and deletes local files unless backed up. Resetting only refreshes the sync database.