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.

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.
- 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.
- 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.

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.
- Go to Start > Settings > System > Storage and turn on Storage Sense.
- Select Storage Sense to open its settings.
- 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.

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.
- Press Windows key + R. The Run box opens.
- Type
%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand press Enter. The OneDrive cloud icon disappears from the taskbar.

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset into Run and choose OK. Microsoft lists alternate installation paths if this one is not found. (Recreated interface)- 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.
- If you had chosen to sync only some folders, choose them again in OneDrive settings. Do this for each account you use.

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:
- Select Start, type
apps:onedrive, and press Enter. The OneDrive app settings page opens. - Select App settings.
- Scroll down and select Reset. OneDrive restarts and resyncs your files.

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.
- Save and close your other Office files.
- In Word, Excel, or PowerPoint, select File > Options > Save.
- Under Cache Settings, select Delete cached files. Confirm if Office asks.

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\OneDriveor 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.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.