How To Free Up Space With OneDrive Files On-Demand (2026)
Your PC is running out of disk space and OneDrive is holding copies of everything.
OneDrive Files On-Demand lets you keep files in the cloud and see them in File Explorer without storing them on the drive.
This guide shows how to free up space, keep chosen files offline and turn the feature on if it is off.
Quick answer: right-click and choose Free up space
| What you want | What to do | Result |
|---|---|---|
| Free disk space now | Right-click the file or folder in File Explorer, then select Free up space | The item becomes online-only and stays in OneDrive |
| Keep a file for offline use | Right-click it, then select Always keep on this device | The item is downloaded and stays on the PC |
| Free space automatically | Turn on Storage Sense in Settings > System > Storage | Unused OneDrive files become online-only after the period you pick |
| No options in the menu | Turn on Files On-Demand in OneDrive settings | The two menu commands appear |
What Files On-Demand does
Microsoft says Files On-Demand lets you access your OneDrive files in File Explorer without downloading them all.
Files you have not opened show up as placeholders that take no space on the drive.
The feature works with Windows 10 version 1709 or later, and Microsoft says OneDrive build 23.066 or later has it turned on by default.
What the three icons mean
File Explorer marks every OneDrive file with a status icon.
| Icon | Status | What it means |
|---|---|---|
| Blue cloud | Online-only | The file is stored only in the cloud, uses no space and downloads when you open it |
| Green check | Locally available | The file was downloaded when you opened it, opens offline and can be set back to online-only |
| Green circle with a white check | Always available | You marked it Always keep on this device, so it stays and uses space |
A sync icon means syncing between your PC and the cloud has not finished yet.
Free up space on a file or folder
- Open File Explorer and go to your OneDrive folder.
- Right-click the file or folder you want to shrink.
- Select Free up space.
The item switches to the blue cloud icon and the space comes back.
Microsoft says making a file online-only does not delete it from OneDrive.
Keep a file or folder on your device
- Right-click the file or folder in your OneDrive folder.
- Select Always keep on this device.
New files you add to a folder marked this way download as always available.
You can also mark single files as always available inside an online-only folder.
Turn on Files On-Demand
- Make sure you are signed in to OneDrive on the PC.
- Select the OneDrive cloud icon in the notification area.
- Select the OneDrive Help and Settings icon, then Settings.
- Open the Sync and back up tab.
- Expand Advanced settings.
- Switch on Files On-Demand.
Free up disk space or Download all files
When Files On-Demand is on, the same settings screen offers two choices.
| Option | Behavior |
|---|---|
| Free up disk space | The default and the choice Microsoft recommends, so cloud files stay online-only until you open them or mark them Always keep on this device |
| Download all files | Downloads every cloud file to the PC, similar to the old behavior with Files On-Demand off |
If your drive is nearly full, pick Free up disk space.
Let Storage Sense do it for you
With Storage Sense on, locally available files become online-only after a period you choose.
- Open Start > Settings > System > Storage.
- Switch Storage Sense on.
- Select Storage Sense, then find Content will become online-only if not opened for more than.
- Choose the time period you want.
Microsoft says the default for OneDrive files in Windows 11 version 22H2 and later is 30 days.
Files marked Always keep on this device are not managed by Storage Sense.
What happens when you delete, move or go offline
| Situation | What Microsoft says happens |
|---|---|
| You are offline | Online-only files cannot be opened |
| You search from the desktop | Online-only files are found by name but not by their contents |
| You move an online-only file inside the OneDrive folder | It is allowed and the file stays in OneDrive |
| You move it outside the OneDrive folder | It downloads and is removed from OneDrive |
| You delete an online-only file on the PC | It is deleted from OneDrive everywhere |
A deleted OneDrive item can be restored from the web recycle bin for 30 days on a personal account, or 93 days on a work or school account.
Our guide to restoring deleted files in OneDrive walks through that.
If you do not see the options
Microsoft lists these steps when the Files On-Demand commands are missing.
- Check whether Windows Information Protection (WIP) is configured on the PC, because it blocks the feature.
- Make sure you run Windows 10 version 16299.15 or later.
- Install the latest version of OneDrive.
- Restart the computer.
- Search the Start menu for OneDrive and open the app.
- Sign in with your personal or work or school account.
- Turn Files On-Demand on again from the settings path above.
Microsoft also says some third-party antivirus products may not be compatible with the feature.
If a folder was set to Always keep by mistake
Microsoft’s advice for an item marked Always keep on this device by mistake is to close OneDrive from its taskbar icon and start it again from the Start menu.
Then mark the item Free up space.
Related OneDrive guides
- If the drive is still full after this, see how to free up disk space on Windows 11.
- To stop Desktop and Documents from uploading at all, read how to stop OneDrive backing up Desktop and Documents.
- If files show Sync pending, see how to fix OneDrive stuck on Processing changes.