What clearing OneDrive cache does and why you might need to

Clearing your OneDrive cache removes temporary files that OneDrive stores on your computer to speed up syncing and file access. These cached files can accumulate over time and take up gigabytes of disk space, especially if you sync large folders or work with many files. Clearing the cache does not delete your actual files from OneDrive or the cloud — it only removes the local copies your computer uses for faster performance.

You might notice your hard drive filling up even though you have not downloaded many files. This happens because OneDrive keeps copies of synced files on your computer so you can access them instantly without waiting for a download. If you have synced a 50 GB folder, OneDrive may be storing much of that locally as cache. Clearing it frees that space back up.

The cache rebuilds automatically the next time you open OneDrive, so clearing it is safe and temporary. Your files remain in your OneDrive account untouched.

Key Takeaways

  • OneDrive cache is stored in a hidden folder on your computer and can be cleared by stopping OneDrive, deleting the cache folder, and restarting the app.
  • On Windows, the cache folder is located at C:\Users\[YourUsername]\AppData\Local\Microsoft\OneDrive, and you need to show hidden files to see it.
  • On Mac, the cache is in ~/Library/Application Support/Microsoft/OneDrive, and you can access it through Finder with the keyboard shortcut Command+Shift+Period.
  • Clearing the cache does not remove your files from OneDrive or the cloud — it only removes temporary local copies on your computer.
  • After clearing cache, OneDrive will rebuild it automatically, which may take time depending on how many files you sync.

How to clear OneDrive cache on Windows

Start by closing OneDrive completely. Right-click the OneDrive icon in your system tray (the small icons on the far right of your taskbar) and select Close OneDrive. If you do not see the icon, open the Start menu, search for "OneDrive," and close the app from there. Make sure the app is fully shut down before moving forward.

Next, open File Explorer and navigate to the cache folder. Paste this path into the address bar at the top: C:\Users\[YourUsername]\AppData\Local\Microsoft\OneDrive. Replace [YourUsername] with your actual Windows username. If you cannot see the AppData folder, you need to show hidden files. Click the View tab at the top of File Explorer, then check the box next to Hidden items.

Once you are in the OneDrive folder, look for a folder named .onedrive.cache or similar cache-related folders. Select these folders, right-click, and choose Delete. You may also see folders like logs or cache — these are safe to delete as well. Empty your Recycle Bin afterward to permanently remove the files.

Finally, restart OneDrive by opening the Start menu, searching for "OneDrive," and launching the app. It will begin rebuilding the cache automatically. Depending on how many files you sync, this process may take several minutes to several hours.

How to clear OneDrive cache on Mac

Close OneDrive first. Click the OneDrive icon in your menu bar (top right of your screen) and select Quit OneDrive. Confirm that the app is no longer running by checking that the OneDrive icon disappears from your menu bar.

Open Finder and navigate to the cache folder. Press Command+Shift+Period (the period key) to show hidden files and folders. Then press Command+Shift+G to open the "Go to Folder" dialog. Paste this path: ~/Library/Application Support/Microsoft/OneDrive. Press Enter to navigate there.

Inside this folder, look for a folder named .onedrive.cache or cache. Drag it to the Trash. You can also delete the logs folder if you want to clear old activity records. Empty the Trash to permanently remove these files.

Reopen OneDrive by clicking the Finder icon, navigating to Applications, and double-clicking OneDrive. The app will rebuild its cache automatically. This process may take time depending on your file count and internet speed.

What to expect after clearing the cache

Your computer will have noticeably more free disk space immediately after clearing the cache. If you freed up 10 GB or more, you should see that reflected in your storage settings right away. However, OneDrive will begin downloading and caching files again as soon as you restart it, so the space will gradually fill back up over the next few hours or days as the app syncs your files.

During the rebuild period, you may notice OneDrive running in the background and using more internet bandwidth than usual. This is normal. If you have a slow internet connection or sync a very large folder, the rebuild can take several hours. You can continue using your computer normally during this time.

If you want to prevent the cache from growing as large in the future, consider using OneDrive's Files On-Demand feature (on Windows) or Files On-Demand (on Mac). This setting lets you see all your OneDrive files without downloading them to your computer, saving significant disk space. You can enable it in OneDrive settings under Settings > Files On-Demand.

When to clear cache versus when to check your sync settings

Clearing cache is the right move if your hard drive is full and you want to free up space quickly. It is also useful if OneDrive is running slowly or files are not syncing properly — a fresh cache can sometimes fix sync issues. However, if your storage problem is not about disk space but about your OneDrive account being full, clearing cache will not help. In that case, you need to delete files from OneDrive itself or buy more storage.

If you notice OneDrive is syncing folders you do not need locally, you can also reduce cache buildup by changing which folders sync to your computer. Open OneDrive settings, go to Account > Choose folders, and uncheck folders you do not need on this device. This prevents those folders from being cached locally while keeping them in your OneDrive account.

Troubleshooting cache clearing problems

If you cannot find the cache folder, make sure you have enabled hidden files. On Windows, go to View > Hidden items. On Mac, press Command+Shift+Period. If the folder still does not appear, try typing the full path directly into the address bar rather than navigating manually.

If OneDrive will not restart after you clear the cache, restart your computer. Sometimes the app needs a full system restart to rebuild properly. If OneDrive still will not open, try signing out and signing back in. Open OneDrive settings, click your account name, and select Sign out. Then reopen OneDrive and sign in again with your Microsoft account.

If you accidentally deleted a file from the cache folder that was not actually cache, do not worry — OneDrive will redownload it automatically. Your actual files in OneDrive are never affected by cache clearing.

Frequently Asked Questions

Will clearing OneDrive cache delete my files?

No. Clearing cache only removes temporary local copies on your computer. Your actual files remain in your OneDrive account in the cloud and are not affected. The cache rebuilds automatically the next time OneDrive runs.

How much space can I free up by clearing the cache?

This depends on how many files you sync. If you sync a 100 GB folder, the cache could be using 50 GB or more of your local disk space. Clearing it frees all of that space, though OneDrive will gradually rebuild the cache as you use the app.

How often should I clear OneDrive cache?

You only need to clear cache when your hard drive is running low on space or if OneDrive is not syncing properly. There is no benefit to clearing it regularly if you have plenty of disk space available. Clearing it too often may slow down OneDrive performance temporarily while it rebuilds.

Can I clear cache without closing OneDrive?

No. OneDrive must be completely closed before you delete the cache folder. If the app is still running, it will lock the cache files and prevent you from deleting them. Always close OneDrive first, then delete the cache, then restart the app.

What is the difference between clearing cache and using Files On-Demand?

Clearing cache removes temporary files you already have synced. Files On-Demand prevents files from being synced to your computer in the first place, saving space long-term. You can use both: enable Files On-Demand to prevent future cache buildup, and clear cache now to free up space immediately.