How to Fix OneDrive Files Using Hard Drive Space Despite Files On-Demand
Question details
The user is experiencing an issue where OneDrive and SharePoint files are consuming physical local storage space even though the Files On-Demand feature is enabled.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Setting up or synchronizing large SharePoint libraries with the OneDrive desktop client.
- Observed behavior
- Files are downloaded to the local hard drive and consume storage space instead of remaining in an online-only state as expected.
Ensure you have a stable internet connection and that your OneDrive desktop client is updated to the latest version before troubleshooting sync and storage issues.
Verify OneDrive Sync Limits and File Count
Check if your synchronized SharePoint libraries exceed OneDrive's performance limits, which can cause metadata and caching to consume local storage.
Although Files On-Demand is designed to save space, syncing massive SharePoint libraries can still use local storage because OneDrive needs to download metadata and cache file structures. If you are syncing more than 300,000 files across all your libraries, the sync engine may struggle, leading to unexpected local space consumption.
Log in to your SharePoint online portal, navigate to your document libraries, and check the total file count. Ensure the combined total across all synced libraries is well below 300,000 files.
Click the OneDrive cloud icon in your system tray, click the Gear icon, and select 'Settings'. Navigate to the 'Account' tab to review all currently synced locations.
Click 'Stop sync' next to any massive or infrequently used SharePoint libraries. This will remove the local connection and stop the metadata from consuming hard drive space.

Re-enable Files On-Demand and Force Free Up Space
Manually clear locally cached files by confirming your Files On-Demand settings and using the Free up space command.
Manage Your Documents Effectively with WPS Office
While troubleshooting OneDrive storage issues, consider using WPS Office for your document management needs. It is a lightweight, highly compatible alternative to Microsoft Office that comes with its own robust cloud storage solution, ensuring your local hard drive remains clutter-free while maintaining seamless productivity.
- 1. Download and Install: Visit the official WPS Office website to download the free suite. Run the lightweight installer to quickly set up the software.
- 2. Log in to WPS Cloud: Open WPS Office and sign in to activate your free WPS Cloud storage, providing a reliable alternative for saving files online.
- 3. Edit Your Documents: Easily open your existing .docx, .xlsx, and .pptx files from your local drive or directly from the cloud without formatting issues.

Frequently Asked Questions
Does the Files On-Demand feature consume storage during the initial setup?
Yes, during the initial sync and setup, OneDrive must cache folder structures, metadata, and file thumbnails. For very large SharePoint libraries, this cached data can temporarily or permanently consume noticeable local hard drive space.
What happens if I sync more than 300,000 files in OneDrive?
Syncing over 300,000 files across all libraries can cause severe performance degradation and unexpected local storage consumption. The OneDrive sync engine struggles to process the metadata for that many files, even if Files On-Demand is enabled.
How do I know if a OneDrive file is taking up local space?
Open File Explorer and check the status column next to your files. A solid green circle with a white checkmark indicates the file is physically stored on your device. A blue cloud icon means it is online-only and taking up zero bytes of local storage.




