Skip to content
Windows 🟢 Beginner

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

Richard
Written by
Richard
Updated 7 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

Deleting files from your computer while keeping them in OneDrive on Windows 11 saves hard drive space without losing anything in the cloud. Normally OneDrive keeps identical copies of your files on your PC and on Microsoft’s servers.

The “Free up space” feature removes the local copy of a file and leaves a small online-only placeholder in its place. The file stays in your OneDrive account. Opening the placeholder downloads the file again when you need to view or edit it.

Do not delete the file in File Explorer to get this result. Inside your OneDrive folder, a normal delete removes the file from the cloud too, and it ends up in the OneDrive recycle bin. Use Free up space instead.

⚡ Quick Answer

Right-click files in your OneDrive folder in File Explorer and select Free up space. This removes the local copy from your computer and replaces it with a cloud icon placeholder, while the file stays in your OneDrive account. Opening the placeholder downloads the file again when needed.

Advertisement

Why Use OneDrive Files On-Demand?

Files On-Demand is a built-in OneDrive setting that saves hard drive space. You see all your OneDrive files in File Explorer, but they only download when you open them. Nothing is deleted from your account.

Online-only files use almost no local storage and show a cloud icon in File Explorer. Opening one downloads it from OneDrive, so you need an internet connection. Files you mark Always keep on this device stay on your computer’s storage until you change that setting.

Advertisement

Files On-Demand is available in Windows 11 Home and Pro, and it is usually on by default. You only need to check it if the Free up space option is missing.

Step 1Find Your OneDrive Files on Your PC

You find your OneDrive folder in File Explorer, the app you use to browse files on your PC. It only takes a couple of clicks.

  1. Open File Explorer. Click the folder icon on your taskbar, or press Windows key + E. A File Explorer window opens.
  2. Look for OneDrive in the left-hand pane and click it. Your cloud files and folders appear on the right. If you use both a personal and a work account, you will see two OneDrive entries, so pick the right one.
  3. Find the files or folders you want to remove from your computer. Make a note of them, because you will come back to them in a later step.

If you do not see OneDrive in the left pane, OneDrive is probably not signed in or not running. Open it from the Start menu and sign in first.

OneDrive folder location in Windows 11 File Explorer sidebar.
OneDrive folder location in Windows 11 File Explorer sidebar.

Step 2Turn On Files On-Demand

Files On-Demand lets Windows decide which files stay on your computer and which live only in the cloud. Check that it is turned on before you try to free up space.

  1. Find the OneDrive cloud icon in the notification area at the bottom-right corner of the screen, near the clock. If you do not see it, click the small up arrow to show hidden icons.
  2. Click the OneDrive icon. A OneDrive panel opens. Right-clicking the icon also works in some versions.
  3. Click the gear icon (Help & Settings), then choose Settings. The OneDrive settings window opens.
  4. Open the Sync and backup tab and expand Advanced settings. On older OneDrive versions, the Files On-Demand option is on the Settings tab instead.
  5. Find Files On-Demand. Make sure Save space and download files as you use them is selected. If you see a toggle instead, make sure it is on.

If your menus look different from these steps, update OneDrive. The settings window has been reorganized in recent releases. You can undo this later by choosing Download all files now in the same place, as long as you have enough free disk space.

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”

⚠️WarningMaking a file online-only removes the local copy from your computer and keeps the file in your cloud account. Before you start, let OneDrive finish syncing. A file that is still uploading, or that shows a sync error, should not be freed up yet. Wait for the sync to finish, or you risk losing the only good copy.
  1. Open your OneDrive folder in File Explorer.
  2. Find the files or folders you want to make online-only. You can select several at once with Ctrl+click, or select a whole folder.
  3. Right-click the selection. A context menu appears.
  4. Look for Free up space. On Windows 11 it may be listed directly, or inside an OneDrive submenu. If you do not see it, click Show more options (or press Shift+F10) to open the full classic menu.
  5. Click Free up space. The icon on each item changes to a cloud. That means the file is now online-only and no longer takes up space on your drive.
Advertisement

If Free up space is missing or greyed out, the item may already be online-only. Files On-Demand may also be off, the file may not be synced yet, or the file may be outside your OneDrive folder. To bring a file back, right-click it and choose Always keep on this device.

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:

  • Blue cloud icon: The file is online-only. It is in OneDrive but not on your computer. You need internet to open it.

  • White circle with a green outline and a green checkmark: The file is on your computer and in OneDrive because you opened it or downloaded it. It takes up space, but Windows can turn it back into an online-only file when you use Free up space or when Storage Sense (the Windows feature that cleans up disk space automatically) is set to do so.

  • Solid green circle with a white checkmark: The file is always available on your computer because you chose Always keep on this device. OneDrive will not remove it automatically.

Reference:

Summary

⚠️WarningFiles On-Demand lets you see all your cloud files in File Explorer without using up your computer’s storage. Use Free up space to remove local copies, never the regular delete command, and check that syncing is finished before you do.

Frequently asked questions

How to delete from OneDrive?

To delete a file from OneDrive, open the OneDrive folder in File Explorer, select the file, and press Del. It is removed from your account and from your other devices. It goes to the OneDrive recycle bin on the web, where you can restore it for 30 days. You can also delete files on onedrive.com.

How delete cloud files 🪟 Windows 11?

To delete cloud files in Windows 11, open the OneDrive folder in File Explorer, select the files, and press Del. This removes them from OneDrive online as well. Deleted files go to the OneDrive recycle bin for 30 days. To free space on your PC but keep the files in the cloud, right-click them and choose Free up space.

How to delete OneDrive files?

Select the files in your OneDrive folder in File Explorer and press Del. They are removed from OneDrive and moved to the OneDrive recycle bin. To delete them permanently, empty that bin on onedrive.com. Deleting files on the OneDrive website works the same way.

How to delete a file on computer but leave on OneDrive?

Right-click the file in your OneDrive folder in File Explorer and choose Free up space. This removes the copy on your computer, but the file stays in OneDrive as an online-only file with a cloud icon. Do not press Del, because that removes the file from OneDrive too.

How to remove apps from OneDrive but keep on computer?

To keep files on your computer while stopping OneDrive from syncing them, open OneDrive settings from the cloud icon in the taskbar. Go to Sync and backup, select Manage backup, and choose Stop backup for the folder. The files stay on your PC and in the cloud, but changes no longer sync between them.

How to delete one drive storage?

To free up OneDrive storage, delete the files you no longer need, then empty the recycle bin on onedrive.com. Deleted files still count toward your storage until the bin is empty. Emptying it is permanent, so check the contents first. Sort files by size on the web to find the largest ones.

Still have a question?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

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

Leave a Comment

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