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 sync faster. When you use OneDrive, it keeps copies of files locally so it doesn't have to read them every time you open them. Over time, this cache can grow large and take up disk space, especially if you work with big files or haven't cleared it in months.

You might notice your hard drive filling up, or OneDrive syncing slowly, or files taking a long time to open. Clearing the cache won't delete your actual files — they stay in your OneDrive account in the cloud. It just removes the local copies that OneDrive uses to speed things up. OneDrive will rebuild the cache as you work, downloading files again as you need them.

This is different from clearing your browser cache or emptying your Recycle Bin. You're specifically targeting the folder where OneDrive stores its temporary sync data.

Key Takeaways

  • OneDrive cache is stored in a hidden folder on your computer and can grow to several gigabytes over time.
  • Clearing the cache frees up local disk space but does not delete files from your OneDrive account.
  • You must pause OneDrive syncing before you delete the cache folder, or OneDrive will recreate it when ready.
  • After clearing the cache, OneDrive will re-read files as you access them, which may take a few minutes per file depending on file size and internet speed.

How to clear OneDrive cache on Windows

First, pause OneDrive syncing so it doesn't interfere while you delete the cache. Right-click the OneDrive icon in your system tray (the small icons on the right side of your taskbar), then select Pause syncing. Choose how long to pause — 2 hours is usually enough time to clear the cache and let OneDrive restart cleanly.

Next, you need to access the hidden cache folder. Open File Explorer and navigate to C:\Users\[YourUsername]\AppData\Local\Microsoft\OneDrive. Replace [YourUsername] with your actual Windows username. If you don't see the AppData folder, you need to show hidden files first. At the top of File Explorer, click View, then check the box next to Hidden items.

Inside the OneDrive folder, look for a folder called cache. Right-click it and select Delete. Windows will move it to your Recycle Bin. If you see a folder named logs, you can delete that too — it contains old sync records that take up space but aren't needed.

Once the cache folder is deleted, wait a few minutes, then right-click the OneDrive icon again and select Resume syncing. OneDrive will start rebuilding the cache as you open files. This may take a while if you have many files, but you'll notice the difference in available disk space right away.

How to clear OneDrive cache on Mac

On a Mac, the process is similar but the folder location is different. First, click the OneDrive icon in your menu bar (top right of the screen), then click Help and select Pause syncing. Choose a pause duration of 2 hours.

Open Finder and press Command + Shift + G to open the "Go to Folder" dialog. Type ~/Library/process Support/Microsoft/OneDrive and press Enter. This takes you directly to the OneDrive folder without having to navigate through hidden directories.

Look for the cache folder inside. Drag it to the Trash. You can also delete a folder called logs if you want to free up additional space. Empty your Trash afterward to permanently remove these files.

After a few minutes, click the OneDrive icon again and select Resume syncing. Your Mac will begin downloading files again as you need them.

How much space you'll free up and what to expect after clearing

The amount of space you recover depends on how much you use OneDrive and how long it's been since you last cleared the cache. Users typically free up between 500 MB and 5 GB, though some people with very large OneDrive libraries see larger gains. You can check the cache folder size before you delete it — right-click the cache folder, select Properties (Windows) or Get Info (Mac), and look at the size listed.

After you clear the cache and resume syncing, OneDrive will start downloading files again. This happens in the background, so you can keep working. However, the first time you open a file that wasn't recently used, it may take a few seconds longer to load while OneDrive downloads it. Large files (videos, design files, databases) may take 10 to 30 seconds depending on your internet speed.

If you work offline frequently, you might notice that files you haven't opened since clearing the cache won't be available until you're back online and they've re-downloaded. This is temporary — once OneDrive rebuilds the cache, everything works normally again.

When clearing cache might not solve your problem

If your disk is still full after clearing the cache, the problem is likely not OneDrive. Check whether you have other large temporary files, old Windows updates, or duplicate files taking up space. Use your operating system's built-in storage tool to see what's using the most space: on Windows, go to Settings > System > Storage; on Mac, click the Apple menu and select About This Mac > Storage.

If OneDrive is syncing very slowly even after clearing the cache, the issue is usually your internet connection, not your computer's storage. Try running a speed test at speedtest.net to see your actual read and upload speeds. OneDrive typically needs at least 5 Mbps read speed for smooth syncing.

If you're seeing sync errors or files stuck in a "pending" state, clearing the cache can sometimes help, but it's not a may provide fix. After clearing and resuming, wait 24 hours for OneDrive to fully resync. If errors persist, check your OneDrive account online at onedrive.live.com to see whether the files are actually there.

Preventing cache buildup in the future

You don't need to clear your OneDrive cache on a strict schedule. Most people can go 6 to 12 months between clearings. However, if you work with very large files (video editing, 3D models, databases), you might want to clear the cache every 3 to 4 months to keep your disk from getting too full.

One way to reduce cache buildup is to use OneDrive's Files On-Demand feature (Windows) or Files On-Demand (Mac). This setting downloads files only when you open them, rather than keeping copies on your computer all the time. To turn it on, right-click the OneDrive icon, select Settings, go to the Files On-Demand tab, and check Use Files On-Demand. This can cut your cache size significantly, though it means you need an internet connection to access files.

You can also reduce cache size by being selective about which folders you sync. If you have a OneDrive folder with 100 GB of files but only use 10 GB regularly, you can uncheck the folders you don't need. Right-click the OneDrive icon, select Settings, go to the Account tab, click Choose folders, and uncheck the ones you don't want synced locally.

Frequently Asked Questions

Will clearing the cache delete my files from OneDrive?

No. Clearing the cache only removes temporary copies stored on your computer. Your actual files remain in your OneDrive account in the cloud. You can see them anytime by logging into onedrive.live.com from any device.

How long does it take for OneDrive to rebuild the cache after I clear it?

OneDrive starts rebuilding the cache when ready when you resume syncing, but the speed depends on how many files you have and your internet connection. Small files read within seconds; large files may take minutes. You don't have to wait for the entire cache to rebuild before using OneDrive — files read on demand as you open them.

What's the difference between clearing cache and signing out of OneDrive?

Clearing cache removes temporary files but keeps you signed in and syncing. Signing out stops all syncing and removes all local copies of your files. Clearing cache is the better option if you just want to free up space. Sign out only if you're removing OneDrive from the computer entirely.

Can I clear OneDrive cache on my phone?

OneDrive on phones (iOS and Android) doesn't store a large cache the way desktop versions do. If you need to free up space on your phone, uninstall and reinstall the OneDrive app, or go to your phone's storage settings and clear the app's cache from there. This won't affect your OneDrive account.

Is it safe to delete the logs folder too?

Yes. The logs folder contains records of past sync activity and takes up space but serves no purpose after a few weeks. You can safely delete it along with the cache folder. OneDrive will create new logs as it syncs going forward.