A OneDrive library can easily contain a terabyte of files. Your laptop SSD might be 256 GB. The math doesn't work — unless you understand Files On-Demand, which is the OneDrive feature that lets you have everything available without actually storing everything locally. Once it's set up properly, you stop worrying about disk space ever again.
The basic idea
By default, every file in your OneDrive folder takes up space on your local drive. If you have 500 GB of files in OneDrive, you'd need 500 GB of free space on your machine to store them all. That math gets ugly very quickly on modern laptops with their small SSDs.
Files On-Demand changes that completely. With it enabled, every file in your OneDrive folder shows up normally — same names, same folders, same icons — but the files aren't actually downloaded until you open them. Until then, they exist only as small placeholder entries. The full content lives on the server.
The result: you see your entire OneDrive library in File Explorer, but you only use a few gigabytes of local disk.
The three states a file can be in
Look in your OneDrive folder. Next to each file, there's an icon that tells you what state the file is in.
- Cloud (a blue cloud icon). The file lives on the server. It takes essentially no local disk space. When you double-click it, OneDrive downloads it first, then opens it.
- Available (a green tick on a white background). The file has been downloaded and is on your disk. You can open it offline.
- Always available (a green tick on a green background). The file is pinned. It stays downloaded no matter how much disk pressure there is.
Files transition between states based on what you do and what OneDrive needs to do to manage disk space. You can also manually push a file between states.
Make sure Files On-Demand is on
It usually is by default. To check:
- Click the OneDrive icon in the system tray.
- Click Help & Settings → Settings.
- Click Sync and backup.
- Click Advanced settings.
- Look for Files On-Demand — it should say "Download files as you use them."
If it's off, turn it on. OneDrive will then convert every fully-downloaded file in your library to a cloud placeholder, and your local disk usage drops dramatically — sometimes by hundreds of gigabytes within a few minutes.
Control which files stay local
You decide. Right-click any file or folder in OneDrive:
- Always keep on this device — pins the file. It stays available offline forever, regardless of disk pressure.
- Free up space — releases it. The local copy goes away; only the cloud placeholder remains.
You can do this on individual files, on whole folders, or on the top-level OneDrive root. Common patterns I see working well:
- Pin your Documents folder for offline access.
- Leave Pictures as cloud-only — open photos as needed; don't waste disk on years of them.
- Pin your current project folder; release older ones once they're complete.
How OneDrive reclaims space automatically
If your disk is filling up, OneDrive can help by releasing files you haven't used recently. It does this automatically when you're running low.
- Open OneDrive Settings → Sync and backup.
- Make sure Storage Sense is integrated. (Storage Sense is a Windows feature that works with OneDrive.)
- In Windows Settings → System → Storage, configure how aggressive Storage Sense should be.
Storage Sense starts with the oldest unused cloud files and releases them first. Pinned files are never touched. Set this up once and forget about disk space for the rest of the year.
The "this file doesn't sync" warning
Files On-Demand has one quirk that catches people off-guard. Some applications need a real file with real bytes behind it — backup software, photo editors like Lightroom, professional video editors, some scripts. When they hit a cloud placeholder, they either trigger a download (which is slow at scale) or silently fail.
The signs:
- Your backup tool reports "file not found" but you can see the file in Explorer.
- Lightroom shows your catalog but every photo is "missing."
- A script you wrote tries to read OneDrive files and gets size-zero results.
For folders that need to be fully present, right-click and choose Always keep on this device. That's the workaround. Trade some disk space for application compatibility.
Files On-Demand vs Selective Sync
Files On-Demand says: "show everything, download lazily." Selective Sync says: "only show me some folders at all." Different tools for different scenarios.
To use Selective Sync:
- OneDrive Settings → Account.
- Click Choose folders.
- Untick the folders you don't want visible on this device at all.
The trade-off:
- Files On-Demand: see everything, download what you open. Best for general use.
- Selective Sync: hide whole folders from this device entirely. Best when you have content you genuinely never want on this machine (a 500 GB Photos folder you only ever browse on the desktop, for example).
You can combine them. Use Selective Sync to hide the giant folders you never touch from this laptop, and rely on Files On-Demand for everything else.
Pinning best practices
- Pin folders for active projects. You'll work in them every day, and you don't want a download delay on every file open.
- Pin small folders generously. A 200 MB Documents folder takes basically nothing. Pin it and forget.
- Don't pin everything. If you pin 500 GB on a 256 GB SSD, OneDrive simply can't honor the pins. You'll see warnings and erratic sync behavior.
- Re-pin after big moves. If you rearrange folders, the new structure inherits the unpinned default. Re-pin where needed.
Diagnosing weird behavior
Two issues come up a lot.
Cloud files won't open
Double-clicking a cloud file should trigger a download and then open it. If it doesn't, either your network is broken or OneDrive isn't fully running. Check the OneDrive icon — if it has a yellow or red status badge, fix that first.
Files keep re-downloading after you free up space
If you free up space on a file but a synced application keeps opening it, the file gets re-downloaded immediately. You either need to stop that application from auto-opening the file, or accept that the file should stay pinned. Be deliberate about which it is.
The shortcut summary
- Right-click → Free up space: remove local copy, keep cloud placeholder.
- Right-click → Always keep on this device: pin file/folder offline.
- OneDrive Settings → Account → Choose folders: hide whole folders entirely.
Files On-Demand is one of those features that, once configured, quietly saves you huge amounts of disk space for the rest of your life with the laptop. Spend ten minutes setting it up properly today and you'll never need to think about it again.
One of the best ROI ratios in personal computing.