How to Clear the OneDrive Cache on Windows 11

OneDrive doesn’t have a “clear cache” button. To free up the space its files use, right-click your OneDrive folder and select Free up space. To fix sync problems, reset OneDrive by running %localappdata%\Microsoft\OneDrive\onedrive.exe /reset in the Run box. Neither option deletes your files from OneDrive. If you would rather stop using the app altogether, you can completely remove OneDrive from Windows 11.

These steps cover the OneDrive app on Windows 11 and Windows 10 for personal and work accounts, and the four things “clearing the OneDrive cache” can mean: local copies, Storage Sense, the sync app’s settings and the Office Document Cache.

Illustration of four ways to clear OneDrive cached data on Windows 11: Free up space, Storage Sense, reset, and Office Document Cache
Illustration: match the OneDrive “cache” fix to your problem.

Which Fix Do You Need?

Problem Best fix
OneDrive files are using too much disk space Free up space, or Storage Sense
Files are stuck syncing or icons look wrong Reset OneDrive
Word, Excel, or PowerPoint files won’t finish uploading Clear the Office Document Cache
OneDrive keeps asking you to sign in Clear cached credentials (see the FAQ)

Free Up Space Used by OneDrive Files

With Files On-Demand, which Microsoft turns on by default in current OneDrive versions, files you open are downloaded and kept on your PC. Over time those local copies can use a lot of space. Free up space removes the local copies but keeps the files in the cloud.

  1. Open File Explorer and select OneDrive in the left pane. Your OneDrive folders appear. If you use more than one account, each has its own entry, such as OneDrive – Personal.
  2. Right-click a folder, or the top OneDrive folder to include everything, and select Free up space. The green check icons change to blue cloud icons.
File Explorer OneDrive folder right-clicked with Free up space in the context menu
Select Free up space to turn downloaded files back into online-only files.

Online-only files (blue cloud) don’t take up space, and they download again when you open them. You can’t open them without an internet connection. Files marked Always keep on this device (a solid green circle with a white check) stay downloaded, so choose Free up space on those too if you want the room back. Microsoft’s Files On-Demand guide explains the icons.

Don’t see Free up space? Files On-Demand may be off. Select the OneDrive cloud icon in the taskbar, select the gear icon, open Settings, go to Sync and back up > Advanced settings, and turn on Files On-Demand.

Let Storage Sense Clean Up Automatically

Storage Sense can turn OneDrive files you haven’t opened in a while back into online-only files for you. It’s off until you turn it on.

  1. Go to Start > Settings > System > Storage and turn on Storage Sense.
  2. Select Storage Sense to open its settings.
  3. Under Locally available cloud content, choose how long a file can go unopened before it becomes online-only. Microsoft says the default for OneDrive is 30 days on Windows 11 version 22H2 and later. Storage Sense frees that space when it runs.
Storage Sense Locally available cloud content section with OneDrive Personal set to 30 days default and its dropdown highlighted
Choose how long unopened OneDrive files stay on this PC. Files marked Always keep on this device are not affected. (Recreated interface)

This setting doesn’t delete anything, and files marked Always keep on this device aren’t affected. The section only appears while you’re signed in to OneDrive. Storage Sense has other cleanup options, and you can also delete temp files in Windows 11 to free space outside OneDrive.

Reset OneDrive to Fix Sync Problems

A reset is the closest thing to clearing OneDrive’s own cache. It disconnects all your sync connections, resets OneDrive’s settings, and rebuilds its sync data file, then runs a full sync. You won’t lose files. If syncing is only running at a bad time, you can turn off OneDrive for a few hours instead of resetting it.

Before you start, select the OneDrive cloud icon and check that nothing is still uploading. If you just saved an important file, wait until it shows a green check.

  1. Press Windows key + R. The Run box opens.
  2. Type %localappdata%\Microsoft\OneDrive\onedrive.exe /reset and press Enter. The OneDrive cloud icon disappears from the taskbar.
Classic Run dialog containing the OneDrive reset command with OK highlighted
Paste %localappdata%\Microsoft\OneDrive\onedrive.exe /reset into Run and choose OK. Microsoft lists alternate installation paths if this one is not found. (Recreated interface)
  1. Wait a couple of minutes. If OneDrive doesn’t reopen on its own, select Start, type OneDrive, and open the app. OneDrive signs back in and starts resyncing. If the setup screens appear instead, set up OneDrive sync on Windows 11.
  2. If you had chosen to sync only some folders, choose them again in OneDrive settings. Do this for each account you use.
Illustration of the steps to reset OneDrive on Windows 11 with the Run box
Illustration: resetting OneDrive with the Run box.

If you see “Windows cannot find…”, try C:\Program Files\Microsoft OneDrive\onedrive.exe /reset instead, and if that fails too, C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset. If none of these work, the OneDrive sync app isn’t installed. These paths come from Microsoft’s Reset OneDrive guide.

The %localappdata% part of the reset command points to your AppData\Local folder, and you can open the AppData folder in Windows 11 to look inside.

If you have the Microsoft Store version of OneDrive

If OneDrive came from the Microsoft Store, reset it from its app settings instead of the Run box:

  1. Select Start, type apps:onedrive, and press Enter. The OneDrive app settings page opens.
  2. Select App settings.
  3. Scroll down and select Reset. OneDrive restarts and resyncs your files.
Windows OneDrive Microsoft Store app settings Reset detail with its local app-data warning and Reset button highlighted
For the Microsoft Store app, open App settings and select Reset when available. It is separate from deleting files in OneDrive. (Recreated interface)

Clear the Office Document Cache

If Word, Excel, or PowerPoint files stored in OneDrive won’t finish uploading, the problem may be the Office Document Cache rather than OneDrive. It’s the cache Office uses to make sure your changes reach the cloud. Deleting it isn’t dangerous and may clear up the syncing problem.

  1. Save and close your other Office files.
  2. In Word, Excel, or PowerPoint, select File > Options > Save.
  3. Under Cache Settings, select Delete cached files. Confirm if Office asks.
Word Options Save page showing Cache Settings and the Delete cached files button
Word Save options detail. Review the upload status before using Delete cached files. (Recreated interface)

Office version 2512 and later may show an extra prompt about cached files with pending uploads; deleting those discards changes that haven’t reached the cloud. Microsoft’s Office cache size guide warns against deleting the cache by hand from your AppData folder, because that can crash Office or lose data. Older Office versions use the Upload Center instead, as Microsoft’s Delete your Office Document Cache guide shows.

If OneDrive Still Won’t Sync

  • OneDrive won’t reopen after the reset: Press Ctrl + Shift + Esc, end any Microsoft OneDrive task, then open OneDrive from Start.
  • Still not syncing: Try an optional extra step. Press Windows key + R, run wsreset.exe, close the Microsoft Store window that opens, then run the reset command again.
  • Nothing works: Uninstall OneDrive and install it again from Microsoft. Uninstalling OneDrive won’t cost you any files or data.
  • Want to check your files are safe: Sign in at onedrive.com. Everything that finished syncing is there.

What Not to Do

  • Don’t delete files inside your OneDrive folder to save space. That deletes them from OneDrive on every device. If removing them everywhere is what you want, here’s how to delete files from OneDrive.
  • Don’t delete random folders in %localappdata%\Microsoft\OneDrive or Office’s cache folder. The reset command and the Delete cached files button do this safely.
  • Don’t use “cleaner” apps on OneDrive folders. Windows already has the tools above.
  • Don’t sign out and back in expecting it to clear the cache. It doesn’t.

OneDrive Cache Questions

Will resetting OneDrive delete my files?

No. It resets settings and resyncs. Files stay on your PC and online. If you had chosen to sync only some folders, choose them again, and folder backup settings may need to be turned back on.

How long does a resync take?

From a few minutes to hours, depending on how many files you have and your connection speed.

Where is the OneDrive cache folder?

OneDrive’s settings and sync data are in %localappdata%\Microsoft\OneDrive, but you shouldn’t clean it by hand. Your downloaded files live in your OneDrive folder itself, which is why Free up space is the way to reclaim room.

How often should I clear the OneDrive cache?

Only when you have a problem. Freeing up space is safe any time, but a reset forces a full resync, so save it for sync errors.

OneDrive keeps asking me to sign in. Will a reset fix it?

Often it’s saved sign-in details, not the cache. The fix is to clear OneDrive cached credentials, which for work or school accounts means deleting the PreSignInSettingsConfig.json file in %localappdata%\Microsoft\OneDrive\settings.