OneDrive Files On-Demand: Free Up Gigabytes Without Deleting Anything

Blue clouds, green ticks and a Storage Sense timer decide what really sits on your SSD, and you can steer every one of them.

FREE$34.95UpdateStar PremiumShare a link to claimThe red bar shows up at the worst moment. You want to install a game patch or copy a few hundred holiday photos, and Windows tells you drive C: is almost full. Your first idea is to start deleting things. Hold on. If you use OneDrive, a good chunk of that space is probably taken by files that already sit safely in the cloud, and you can hand that space back without losing a single document.

The feature behind this is called Files On-Demand. Since OneDrive build 23.066 it is switched on by default, so most people already have it and simply never touched it. This guide shows you how to read it, steer it by hand, automate it with Storage Sense, and lock away the files that deserve more protection.

Trick 1: Learn the three status icons

Open your OneDrive folder in File Explorer and look at the small icons next to your files (in the Details view they sit in their own Status column). Every file and folder carries one of three icons, and each one means something different for your disk.

IconWhat it meansUses disk space?
Blue cloudOnline-only. The file downloads the moment you open it.No
Green check mark (outline)Locally available. You opened it once, so a copy stayed on the PC.Yes
Solid green circle with white checkAlways keep on this device. Stays local, even offline.Yes

The catch with the blue cloud: without an internet connection you can't open those files. Windows search still finds online-only files by name, but it can't look inside them, because their content isn't on the PC.

If you don't see any clouds at all, Files On-Demand might be set to download everything. Click the OneDrive cloud icon in the notification area, then the gear icon (Help and Settings), and choose Settings. On the Sync and back up tab, expand Advanced settings. You'll find two buttons there: Free up disk space (the default, new cloud files arrive as online-only) and Download all files (everything lands on the PC). Pick Free up disk space if your drive is tight.

Trick 2: Free up space by hand

The quickest win is a big folder you rarely need on this PC, such as old project archives or a video collection.

  1. Open your OneDrive folder in File Explorer.
  2. Right-click the folder or file you want off the disk.
  3. Select Free up space.

The green check turns into a blue cloud and the space comes back immediately. Nothing gets deleted: the file stays in your OneDrive and you can still open it on the website, in the mobile app, or on this PC whenever you're online.

Be careful not to confuse this with deleting. If you delete an online-only file from the PC, it disappears from OneDrive on all your devices. You can restore it from the OneDrive recycle bin on the web for up to 30 days with a personal Microsoft account (93 days for work or school accounts).

Trick 3: Pin the files you need offline

Now the opposite case. Your tax documents, the presentation for tomorrow's train ride, the PDF manual for your router: these should open even with no Wi-Fi.

  1. Right-click the file or folder.
  2. Select Always keep on this device.

OneDrive downloads it and marks it with the solid green circle. A neat detail: if you pin a whole folder, new files that land in it later also download automatically. And if a folder is online-only, you can still pin single files inside it.

Trick 4: Let Storage Sense do the sweeping

Freeing up space by hand works, but you'll forget. Windows has a built-in helper that turns files you haven't opened for a while back into online-only files. Storage Sense is off by default, so you need to switch it on.

  1. Go to Start > Settings > System > Storage.
  2. Set Storage Sense to On, then click Storage Sense to open its options.
  3. Under Run Storage Sense, choose how often it should run.
  4. Scroll to Locally available cloud content and pick a value under Content will become online-only if not opened for more than:.

Storage Sense settings with the dropdown for making OneDrive files online-only The OneDrive timer in Storage Sense (shown here in Windows 10; Windows 11 uses the same wording).

Since Windows 11 version 22H2, the default for OneDrive is 30 days. If you choose weekly runs and a 14-day window, Storage Sense checks once a week and sends anything you haven't opened in two weeks back to the cloud. Files you pinned with Always keep on this device are never touched, so Trick 3 and Trick 4 work as a team.

Two limits to know: Storage Sense only works on the system drive (usually C:), so a OneDrive folder on a D: drive is ignored. It also only runs while you're signed in and online.

Trick 5: Change many files at once with the command line

If you want to free up hundreds of folders in one go, or script it, Windows handles the same states with the classic attrib command. Open a Command Prompt and use:

  • attrib +p "path" to make a file or folder always available (pinned)
  • attrib -p "path" to return it to locally available
  • attrib +u "path" to make it online-only

Typing attrib "path" without a switch shows you the current state. One quirk: an online-only file can't jump straight to locally available. Pin it with +p first, then clear the pin with -p.

Trick 6: Lock sensitive files in Personal Vault

Saving space is one side. The other is keeping passport scans and contracts away from anyone who gets into your PC or your account. That's what Personal Vault does: it's a special folder in OneDrive that needs a second verification step (a code by text or email, the Microsoft Authenticator app, your fingerprint or face) every time you open it.

The Personal Vault folder in the OneDrive web interface Personal Vault sits among your other OneDrive folders, here on onedrive.com.

  1. Open your OneDrive folder and select Personal Vault.
  2. Click Next or Continue, then Verify in the Verify your identity dialog.
  3. Choose a verification method and enter the code you receive.
  4. Move your sensitive files into the vault.

On the web, the vault locks itself after 20 minutes of inactivity. On the PC you choose the lock time yourself: open OneDrive Settings, go to the Account tab and pick a time under Personal Vault.

A few limits are worth knowing before you rely on it. Without a Microsoft 365 Personal or Family subscription you can only store three files in the vault. You can't share files from inside it. Files you delete from the vault on your PC don't go to the Windows Recycle Bin; you'll only find them in the OneDrive recycle bin on the web. And vault files don't show up in search results, which is the point.

Our verdict

Files On-Demand pays off most on laptops with small SSDs, where every gigabyte counts. The one thing to do today: right-click the biggest folder in your OneDrive that you don't need offline, choose Free up space, then switch on Storage Sense so it stays that way. If OneDrive keeps grabbing your Desktop folder too, our news piece below shows how to stop that.

Related on UpdateStar

about author