Why OneDrive Files Take Up Local Space After Setting Them to Online-Only
🔍 WiseChecker

Why OneDrive Files Take Up Local Space After Setting Them to Online-Only

Quick fix: Right-click the OneDrive folder → Free up space. This converts locally-cached files back to online-only. The cloud icon changes to a downward arrow showing files are cloud-only — local disk space is reclaimed immediately.

You set OneDrive’s Files On-Demand to Online-only. You expected files to take zero local disk space. But OneDrive folder still shows several GB of usage. Some files have green checkmarks (always available offline), some have blue cloud icons (online-only). The mismatch comes from OneDrive’s “recent access” behavior: files you opened recently get cached locally, even if you set the folder to online-only.

Symptom: OneDrive folder consumes substantial local disk space despite Files On-Demand being set to Online-only.
Affects: Windows 11 (and Windows 10) with OneDrive sync.
Fix time: ~5 minutes.

ADVERTISEMENT

What causes this

OneDrive Files On-Demand has three states per file. Online-only (cloud icon): file is on OneDrive servers, not on local disk. Opening it downloads it. Locally available (green checkmark with cloud): file was opened recently and is cached locally. Will be evicted automatically if disk runs low. Always available (solid green circle with white checkmark): explicitly pinned to local storage. Won’t be evicted.

Just setting a folder’s default to Online-only doesn’t purge locally-cached files. You have to explicitly free up space.

Method 1: Free up space on the OneDrive folder

The standard cleanup.

  1. Open File Explorer. Navigate to your OneDrive folder.
  2. Right-click the folder (or specific subfolders/files) → Free up space.
  3. The cached files are evicted; cloud icons replace the green checkmarks.
  4. Local disk space is freed within a few seconds.
  5. If Free up space isn’t in the context menu, click the OneDrive cloud icon in the system tray → Settings → Sync and backup → Advanced settings → Files On-Demand → Free up space.
  6. Click the option to free up space across all OneDrive folders.

This handles the bulk eviction in one action.

ADVERTISEMENT

Method 2: Configure OneDrive to limit cache aggressively

Use to prevent the same buildup from happening again.

  1. Click the OneDrive cloud icon in the system tray.
  2. Click Settings (gear icon) → Settings.
  3. Switch to the Sync and backup tab → Advanced settings.
  4. Find Cache size or Storage Sense integration option. If present, set a low cache cap (e.g., 1 GB).
  5. In Settings → System → Storage, ensure Storage Sense is enabled. Click Storage SenseLocally available cloud content. Set to 1 day — Storage Sense auto-evicts files not opened in the past day.
  6. Combination of OneDrive’s cache cap + Storage Sense produces persistent low local OneDrive usage.

This is the preventive setup. Local cache stays small automatically.

Method 3: Manually mark folders as Always available or Online-only

For per-folder fine-grained control.

  1. Right-click any OneDrive folder.
  2. Three options:
    • Always keep on this device — folder + contents always downloaded, never evicted. Use for offline-needed folders (current projects, frequently-accessed docs).
    • Free up space — make everything online-only now. Cloud icons replace local checkmarks.
    • Default behavior (neither): hybrid; files cache when opened, auto-evict when not.
  3. Apply to each folder based on your usage. For most: keep one folder Always available (e.g., Current Projects), and Free up space on the rest.
  4. The configuration persists across reboots and OneDrive restarts.

This is the right approach for hybrid use — heavy offline access to some folders, cloud-only for the rest.

How to verify the fix worked

  • Open File Explorer. Navigate to OneDrive folder. Most files show cloud icons (online-only).
  • Right-click the OneDrive folder → Properties. Total size on disk should be near zero (a few KB for sync metadata, not GB).
  • Open Settings → System → Storage. Recheck disk usage — should reflect the freed space.
  • Open a OneDrive file. It downloads (briefly shows progress), opens, and re-marks as locally available. After 1 day of non-access, Storage Sense evicts it again.

If none of these work

If local OneDrive space stays high despite Free up space, three causes apply. Files marked Always Keep: even individual files inside “default” folders can be pinned. Use File Explorer to view file icons — solid green circles are pinned. Right-click and uncheck Always keep on this device. Hidden duplicates: OneDrive sometimes creates “conflict copies” when sync errors occur. Check for files named with “ – Copy”, “ – Conflict”, or similar. Delete or move. Corrupted sync state: in rare cases the OneDrive sync engine has incorrect file state. Reset OneDrive via Settings → Apps → OneDrive → Advanced options → Reset. Sync restarts from scratch but file pinning is preserved.

Bottom line: OneDrive doesn’t automatically purge cached files when you change settings — you need to explicitly Free up space. Combine with Storage Sense for ongoing maintenance.

ADVERTISEMENT