Why OneDrive Takes Up Local Hard Drive Space Explained
In this article
Yes, OneDrive takes up local hard‑drive space because it stores a synchronized copy of your cloud files and keeps a cache for offline access and faster syncing.
What You’ll Need
- A Windows PC (or Mac) with the OneDrive client installed and signed in.
- Administrative rights to change system settings if you plan to adjust folder selection or clear the cache.
- Basic familiarity with File Explorer and the Windows Settings app.
Step‑By‑Step
- Open the OneDrive client. Click the cloud icon in the task‑bar notification area (you may need to click the upward arrow to reveal hidden icons). If the icon is missing, search for “OneDrive” in the Start menu and launch the app.
- Check the sync status. Right‑click the cloud icon and select Settings. In the Account tab you will see a list of synced folders and the amount of data stored locally. This gives you a quick view of how much space OneDrive is already using.
- Review Files On‑Demand settings. In the same Settings window, go to the Settings tab and locate the “Save space and download files as you use them” checkbox. If this option is unchecked, OneDrive downloads every file to your drive, which can quickly fill up space. Enable the checkbox to activate Files On‑Demand.
-
Understand the three file states. With Files On‑Demand enabled, each file appears in File Explorer with one of three icons:
- Online‑only – a cloud icon; the file lives only in the cloud until you open it.
- Locally available – a check‑mark; the file has been downloaded but can be made online‑only again.
- Always available – a solid circle with a check; the file stays on your drive regardless of internet connection.
- Adjust folder selection. Right‑click the OneDrive icon, choose Settings**, then the Account tab and click Choose folders. Uncheck any folders you rarely need offline. Those folders will remain in the cloud and appear as online‑only in Explorer, freeing space.
-
Clear the local cache. OneDrive stores a hidden cache in
%localappdata%\Microsoft\OneDrive\cache. To clear it, close OneDrive (right‑click the icon → Close OneDrive), navigate to the cache folder, delete its contents, then restart OneDrive. This removes temporary sync files that can accumulate over time. - Use Windows Storage Sense. Open Settings > System > Storage and enable Storage Sense. Configure it to delete temporary files and files in the Recycle Bin after a set period. Storage Sense can also free up space by making OneDrive files online‑only when they haven’t been opened for a while.
- Check for duplicate local copies. Some users keep a separate backup folder outside of the OneDrive folder. Search your drive for duplicate file names or use a tool like “WinDirStat” to visualize which folders consume the most space.
- Monitor space usage regularly. In the OneDrive Settings window, the Account tab shows the total size of files stored locally. Compare this number with the free space shown in Settings > System > Storage to ensure you stay within safe limits.
- Re‑enable Files On‑Demand if it was turned off. If you ever disabled the feature to force all files offline, repeat step 3 to turn it back on. This will automatically convert files that haven’t been opened recently back to online‑only, reclaiming space.
Common Mistakes
Many users unintentionally let OneDrive fill their drive by:
- Disabling Files On‑Demand, which forces a full download of every synced file.
- Selecting “Always keep on this device” for large media libraries, even when they are rarely accessed.
- Forgetting to clear the cache after a major sync or after uninstalling and reinstalling the client.
- Assuming that deleting a file from the OneDrive folder on the PC also deletes it from the cloud; in fact, it moves the file to the Recycle Bin in the cloud and still occupies space until permanently removed.
Tips
- Set the “Make files online‑only when space is low” option in Storage Sense for automatic reclamation.
- Mark rarely used folders as “Online‑only” and keep only the most essential documents as “Always available”.
- Use the “Free up space” context‑menu command (right‑click a locally available file and choose Free up space) to quickly convert it back to online‑only.
- Schedule a monthly review of the
%localappdata%\Microsoft\OneDrive\cachefolder to prevent hidden bloat. - If you have a secondary internal drive, move the OneDrive folder location via Settings > Account > Choose folders > Change location to keep the primary drive clear.
Troubleshooting
If OneDrive continues to consume more space than expected, follow these steps:
- Restart the client. Right‑click the cloud icon, select Close OneDrive, then launch it again from the Start menu.
- Check for updates. In Settings > About, click Version and then Check for updates. An outdated client may not respect the latest Files On‑Demand behavior.
- Verify your account storage quota. Log into the OneDrive web portal, go to Settings > Options, and confirm that you have not exceeded your cloud quota, which can cause sync anomalies and duplicate local copies.
- Reset OneDrive. Press Win + R, type
%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand press Enter. The client will restart and rebuild its sync database, often clearing phantom local files. - Re‑install the client. Uninstall OneDrive from Settings > Apps, download the latest installer from Microsoft’s official site, and reinstall. This step should be a last resort because it removes local sync metadata; ensure you have a reliable internet connection to re‑download needed files.
- Backup before deleting. If you decide to delete the entire OneDrive folder to start fresh, copy any unsynced files to another location first. Deleting the folder without a backup will permanently lose any files that have not yet been uploaded.
Frequently Asked Questions
Does OneDrive always keep a copy of every file on my PC?
No. With Files On‑Demand enabled, only files you open or mark as “Always available” are stored locally. All other files remain online‑only.
Can I see how much space the OneDrive cache is using?
Yes. Open File Explorer, navigate to %localappdata%\Microsoft\OneDrive\cache, right‑click the folder, and select Properties** to view its size.
What happens if I delete a file that is marked as “Always available”?
The file is moved to the OneDrive Recycle Bin in the cloud. It still counts against your cloud quota until you permanently delete it from the web interface.
Is there a way to force OneDrive to free up space without opening each file?
Yes. Enable Storage Sense’s “Free up space automatically” option, or right‑click a folder and choose Free up space to convert all its contents to online‑only in one action.
Why does the OneDrive folder sometimes appear larger than the sum of its files?
The discrepancy is usually caused by hidden sync metadata and temporary cache files that are not visible in normal Explorer views.
Can I store OneDrive on an external USB drive?
Yes. In OneDrive Settings > Account, click Unlink this PC**, then set up OneDrive again and choose the external drive as the new location. The drive must stay connected for sync to work.