|

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 wantWhat to doResult
Free disk space nowRight-click the file or folder in File Explorer, then select Free up spaceThe item becomes online-only and stays in OneDrive
Keep a file for offline useRight-click it, then select Always keep on this deviceThe item is downloaded and stays on the PC
Free space automaticallyTurn on Storage Sense in Settings > System > StorageUnused OneDrive files become online-only after the period you pick
No options in the menuTurn on Files On-Demand in OneDrive settingsThe 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.

IconStatusWhat it means
Blue cloudOnline-onlyThe file is stored only in the cloud, uses no space and downloads when you open it
Green checkLocally availableThe file was downloaded when you opened it, opens offline and can be set back to online-only
Green circle with a white checkAlways availableYou 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

  1. Open File Explorer and go to your OneDrive folder.
  2. Right-click the file or folder you want to shrink.
  3. 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

  1. Right-click the file or folder in your OneDrive folder.
  2. 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

  1. Make sure you are signed in to OneDrive on the PC.
  2. Select the OneDrive cloud icon in the notification area.
  3. Select the OneDrive Help and Settings icon, then Settings.
  4. Open the Sync and back up tab.
  5. Expand Advanced settings.
  6. 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.

OptionBehavior
Free up disk spaceThe 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 filesDownloads 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.

  1. Open Start > Settings > System > Storage.
  2. Switch Storage Sense on.
  3. Select Storage Sense, then find Content will become online-only if not opened for more than.
  4. 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

SituationWhat Microsoft says happens
You are offlineOnline-only files cannot be opened
You search from the desktopOnline-only files are found by name but not by their contents
You move an online-only file inside the OneDrive folderIt is allowed and the file stays in OneDrive
You move it outside the OneDrive folderIt downloads and is removed from OneDrive
You delete an online-only file on the PCIt 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.

  1. Check whether Windows Information Protection (WIP) is configured on the PC, because it blocks the feature.
  2. Make sure you run Windows 10 version 16299.15 or later.
  3. Install the latest version of OneDrive.
  4. Restart the computer.
  5. Search the Start menu for OneDrive and open the app.
  6. Sign in with your personal or work or school account.
  7. 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.

Official sources

Leave a Reply

Your email address will not be published. Required fields are marked *