Skip to content
Follow
Windows 🟢 Beginner

How to Delete Files from Your Computer but Keep Them in OneDrive on Windows 11

Richard
Written by
Richard
Jun 28, 2026 Updated Aug 12, 2026 3 min read
How to Delete Files from Your Computer But Keep Them Safe in OneDrive on Windows 11
How to Delete Files from Your Computer But Keep Them Safe in OneDrive on Windows 11

Freeing up hard drive space on Windows 11 without losing your cloud files means removing local copies while keeping them safe in OneDrive. OneDrive normally syncs your files, meaning identical versions sit on your computer and live on Microsoft servers at the same time.

Turning on the “Free up space” feature tells Windows to delete the heavy file from your local storage drive while leaving a tiny online-only shortcut in its place. Clicking that shortcut downloads the file again whenever you need to view or edit it.

⚡ Quick Answer

Right-click on the OneDrive icon in your system tray and select Settings. Ensure “Save space and download files as you use them” is checked under the Account tab. Then, in File Explorer , right-click desired files or folders and select “Free up space” to make them online-only.

Why Use OneDrive Files On-Demand?

OneDrive Files On-Demand acts as a smart feature that displays your entire directory structure inside File Explorer without consuming local drive capacity. Files marked as ‘online-only’ download dynamically whenever you open them, preserving device storage. Administrators decide which directories remain permanently pinned locally and which ones stay exclusively in the cloud.

Online-only files on Windows 11 consume zero local storage space and display a cloud icon in File Explorer . Selecting these items initiates a real-time download from OneDrive. Items set to "always keep on this device" remain permanently on the computer's storage.

Step 1Find Your OneDrive Files on Your PC

Access your OneDrive files directly through File Explorer , exactly like browsing any local directory. Open File Explorer by clicking the yellow folder icon on the taskbar or by pressing the Win and the letter E simultaneously. Locate ‘OneDrive’ listed on the navigation pane and click it to view stored data.

  1. Open File Explorer . You can click the folder icon on your taskbar or press Windows key + E.
  2. Look for “OneDrive” in the left-hand side of File Explorer . Click on it to see your files.
  3. Find the files or folders you want to remove from your computer.
OneDrive folder location in Windows 11 File Explorer sidebar.
OneDrive folder location in Windows 11 File Explorer sidebar.

Step 2Turn On Files On-Demand

OneDrive Files On-Demand preserves storage capacity, and this utility often activates automatically. Locate the small OneDrive cloud icon in the bottom-right corner of your screen, near the system clock. Expand the system tray via the small upward-pointing arrow if the icon remains hidden. Right-click the OneDrive cloud icon, select 'Settings', and verify that Files On-Demand remains active.

  1. Find the OneDrive cloud icon. It's usually in the bottom-right corner of your screen, near the clock. If you don't see it, click the small arrow pointing up.
  2. Right-click the OneDrive icon. A menu will appear.
  3. Choose "Settings". This opens the OneDrive settings window.
  4. Click on the "Account" tab.
  5. Look for "Files On-Demand". Make sure the option "Save space and download files as you use them" is selected.
Click the OneDrive settings button in the system tray.
Click the OneDrive settings gear icon to access options.
Free up disk space by setting OneDrive files to online-only.
OneDrive 'Free up disk space' option to save storage.

Step 3Make Files "Online-Only"

Files On-Demand enables the delegation of specific files or entire directories to 'online-only' status, reclaiming drive capacity. Open the OneDrive directory inside File Explorer and target the items slated for cloud migration. Right-click the targeted file or folder, then select 'Smart Sync' or 'Free up space'.

  1. Open your OneDrive folder in File Explorer.
  2. Find the files or folders you want to make "online-only".
  3. Right-click on the file or folder. A menu will show up.
  4. Look for an option like "Smart Sync" or "Free up space". The exact words might be slightly different.
  5. Choose "Free up space". If the file was downloaded, its icon will change to a cloud. This means it is now online-only.
Right-click OneDrive folder to free up disk space on Windows 11.
Free up space by making OneDrive files online-only.

What the icons mean:

  • 📝Good to Know
    Blue cloud icon: The file is online-only. It is in OneDrive but not on your computer. You need internet to open it.
  • Green circle with a white checkmark: The file is on your computer and in OneDrive. It takes up space.

  • 📝Good to Know
    White circle with a blue outline and a green checkmark: The file is always available on your computer. OneDrive will not remove it.

Reference:

https://support.microsoft.com/en-us/onedrive/delete-files-or-folders-in-onedrive

Summary

Deploying OneDrive's Files On-Demand renders every directory visible within File Explorer while bypassing local hardware capacity limits.

Can I use OneDrive online only?

A blue cloud icon next to a OneDrive file or folder indicates that the file is only available online. Online-only files don't take up space on your computer.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Delete Files and Folders from Your OneDrive But Not Your Computer in Windows 11
Windows How to Delete Files and Folders from Your OneDrive But Not Your Computer in Windows 11
How to Make File Explorer Open to OneDrive in Windows 11
Windows How to Make File Explorer Open to OneDrive in Windows 11
How to lock your OneDrive Personal Vault
Windows How to lock your OneDrive Personal Vault
How to Share Your Screen with Sound in Microsoft Teams
Windows How to Share Your Screen with Sound in Microsoft Teams

No comments yet — be the first to share your thoughts!

Leave a Comment

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