How to clear OneDrive cache depends on which "cache" you mean, because OneDrive has no single clear-cache button. To reclaim disk space, right-click your OneDrive folder and choose Free up space. To fix sync problems, reset the OneDrive app with onedrive.exe /reset. To fix Office files stuck uploading, delete the Office Document Cache from File → Options → Save in Word, Excel or PowerPoint.
None of these methods deletes your files from the cloud. Below are the steps for each, and how to tell which one you need.
What Is the OneDrive Cache?
The OneDrive cache is the set of local files and data Windows keeps so your cloud files open quickly and sync correctly. It has three parts, and each is cleared differently.
| Type of cache | What it holds | Symptom it causes | How to clear it |
|---|---|---|---|
| Locally available files | Downloaded copies of OneDrive files | OneDrive folder using lots of disk space | Free up space (Files On-Demand) |
| Sync app data | Settings and the sync app's record of what has synced | Stuck syncing, "processing changes", wrong icons | Reset OneDrive |
| Office Document Cache | Copies of Office files waiting to upload | Word, Excel or PowerPoint files stuck "uploading" or upload errors | Delete cached files in Office options |
How Do You Clear OneDrive Cache to Free Up Disk Space?
You clear OneDrive's local file cache by marking files as online-only with Free up space. The files stay in your OneDrive and in File Explorer but stop taking up room on the drive.
This works because of Files On-Demand, which Microsoft says is on by default from OneDrive build 23.066. With it, a file can exist in three states: online-only (blue cloud icon, uses no space), locally available (downloaded when you opened it), and pinned to the device (green circle with a white tick, kept even when offline).
- Open File Explorer and select your OneDrive folder in the left pane.
- Right-click the folder (or specific sub-folders you rarely use).
- Select Free up space.
- Wait for the icons to change to a blue cloud. The space is released as each file converts.
Files marked Always keep on this device are excluded until you change them back. Microsoft explains the icons on its OneDrive Files On-Demand page.
How to Clear OneDrive Cache Automatically
You clear it automatically with Storage Sense, which can turn locally available OneDrive files back into online-only files after a period you choose. This keeps the cache from growing again.
- Open Settings → System → Storage.
- Select Storage Sense and turn it on.
- Under the OneDrive section, choose how many days a file can stay unopened before it becomes online-only.
- Optionally, select Run Storage Sense now.
Storage Sense also cleans temporary files and the Recycle Bin, which is the quickest answer if you came here looking to clear cache on Windows 11 more generally. For a manual clean-up of system files, see our guide to using Disk Cleanup in Windows.
How Do You Reset OneDrive to Clear Its Sync Data?
You reset OneDrive by running its reset command, which clears the sync app's settings and connections and then performs a full sync. Microsoft states you will not lose files or data by resetting OneDrive on your computer.
- Press Windows + R to open Run.
- Type
%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand select OK. - If Windows says it cannot find the file, try
C:\Program Files\Microsoft OneDrive\onedrive.exe /reset, thenC:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset. - Wait a minute or two. If OneDrive does not restart by itself, select Start, type OneDrive and open the app.
- If you previously chose to sync only some folders, choose them again in OneDrive settings.
Microsoft's Reset OneDrive page lists the same commands. Our step-by-step guide to resetting OneDrive on Windows 11 covers what to expect during the resync, so we will not repeat it here.
How Do You Clear the Office Document Cache?
You clear the Office Document Cache from the Save options in any Office app, which deletes local copies of Office files that are waiting to upload to OneDrive or SharePoint. Do this when an Office file seems stuck uploading or keeps reporting an upload problem.
- First, make sure there are no unsaved changes: open the affected files and confirm they have saved, or save a copy elsewhere.
- Open Word, Excel or PowerPoint and go to File → Options → Save.
- Under Cache Settings, select Delete cached files, then confirm.
- Optionally, reduce Days to keep files in the Office Document Cache, or tick Delete files from the Office Document Cache when they are closed.
- Close all Office apps, then reopen the file from OneDrive.
Microsoft notes that if the delete-on-close option is enabled and you close a file before its upload finishes, you may be asked to wait, save elsewhere or close without saving, so leave it off unless you have a reason to use it.
Which Method Should You Use?
Choose the method that matches your symptom, starting with the least disruptive.
- Low disk space: Free up space, then turn on Storage Sense.
- Sync stuck or files not updating: pause and resume sync, then reset OneDrive.
- Office file stuck uploading: delete the Office Document Cache.
- Personal Vault will not unlock: that is a separate issue; see our OneDrive Personal Vault error fix.
- Games stuttering: that is the graphics shader cache, not OneDrive; see how to clear the DirectX shader cache.
A Common Mistake We See
Some people try to clear OneDrive's cache by deleting files from the OneDrive folder in File Explorer. That does not clear a cache: it deletes the files from OneDrive in the cloud as well, on every synced device. They then go to the OneDrive recycle bin online to recover them. Use Free up space instead, which removes only the local copy and leaves the file in the cloud.
Frequently Asked Questions
Does clearing OneDrive cache delete my files?
No, as long as you use the right method. Free up space removes only local copies, resetting OneDrive keeps your files, and deleting the Office Document Cache removes only temporary upload copies. Deleting files directly from the OneDrive folder, however, deletes them from the cloud too.
Where is the OneDrive cache stored in Windows 11?
Downloaded files live inside your OneDrive folder, usually under your user profile. The sync app's own data sits in your local AppData folder for OneDrive, and the Office Document Cache sits in Office's local folder. You do not need to delete these folders manually; use the built-in methods instead.
How do I clear OneDrive cache on a Mac?
On a Mac, right-click OneDrive files or folders in Finder and choose Free up space to make them online-only. To reset the sync app, quit OneDrive and use the reset option Microsoft describes for macOS. Office for Mac has its own cache handling separate from Windows.
Why is my OneDrive folder taking up so much space?
Every file you open is downloaded and stays locally available, and anything marked Always keep on this device is fully stored. Over time that adds up. Use Free up space on large folders and turn on Storage Sense so unused files return to online-only automatically.
How do I clear cache on Windows 11 in general?
Open Settings → System → Storage → Temporary files, select the categories you want and choose Remove files. Storage Sense can do this automatically. Browser caches are cleared inside each browser, and the DirectX shader cache is listed under Temporary files.
Conclusion
Knowing how to clear OneDrive cache comes down to matching the method to the problem: Free up space for disk space, a reset for sync trouble, and Delete cached files for stuck Office uploads. If you rely on OneDrive and Office together, our Office 365 subscriptions include cloud storage alongside the desktop apps.
Useful Links
| Resource | Link |
|---|---|
| Office 365 subscriptions | Office 365 collection |
| Reset OneDrive on Windows 11 | How to reset OneDrive |
| Disk Cleanup guide | How to use Disk Cleanup |
| Files On-Demand (Microsoft) | Save disk space with Files On-Demand |
| Reset OneDrive (Microsoft) | Reset OneDrive |
| Office Document Cache settings (Microsoft) | Office Document Cache settings |
Deixe um comentário