What happens when you remove OneDrive files from your PC

When you delete a OneDrive file from your computer's hard drive, you have two separate outcomes depending on how you delete it. If you remove the file while OneDrive is running and syncing, the file deletes from both your PC and your OneDrive cloud storage — it goes to the OneDrive recycle bin online, where you can recover it for 93 days. If you delete the file from your PC's recycle bin without OneDrive running, or if you've already emptied your recycle bin, the file is gone from your computer but may still exist in your OneDrive cloud storage until you delete it there too.

The key distinction is between removing the file from your computer and removing it from OneDrive entirely. Most people want to free up space on their PC without losing the file in the cloud, or they want to stop syncing a folder without deleting the actual data.

Key Takeaways

  • Deleting a OneDrive file from your PC while OneDrive is running removes it from both your computer and your cloud storage, but you can recover it from the OneDrive recycle bin for 93 days.
  • To free up PC space while keeping files in the cloud, you can stop syncing a folder instead of deleting it — the files stay online but disappear from your hard drive.
  • Files marked as "online-only" in OneDrive take almost no space on your PC and read only when you open them.
  • You can see how much space OneDrive is using on your PC by checking the OneDrive settings under Storage.
  • If you delete a file from your recycle bin before OneDrive syncs the deletion, the file remains in your OneDrive cloud storage until you delete it there separately.

Stop syncing a OneDrive folder without deleting files

If you want to remove OneDrive files from your PC but keep them in your cloud storage, the safest method is to stop syncing the folder. Open the OneDrive icon in your system tray (bottom right of your screen on Windows, top right on Mac). Right-click the OneDrive icon and select Settings. Go to the Account tab, then click Choose folders.

A window opens showing all your OneDrive folders. Uncheck the folders you want to remove from your PC. When you click OK, OneDrive stops syncing those folders and removes them from your hard drive over the next few minutes. The files remain in your OneDrive online storage and you can access them through the OneDrive website or by re-enabling the sync later.

This method is much safer than deleting files directly because you do not risk accidentally losing data. If you change your mind, you can always turn the sync back on and the files reappear on your PC.

Delete OneDrive files directly from your PC

To delete a OneDrive file the standard way, locate it in File Explorer (Windows) or Finder (Mac), right-click it, and select Delete. The file moves to your recycle bin (Windows) or trash (Mac). If OneDrive is running, it detects the deletion and removes the file from your cloud storage as well within a few minutes.

To permanently remove the file, empty your recycle bin or trash. On Windows, right-click the recycle bin on your desktop and select Empty Recycle Bin. On Mac, click the Finder menu, select Empty Trash. Once you empty the bin, the file is gone from your PC, but if OneDrive had not yet synced the deletion to the cloud, the file may still exist in your OneDrive storage.

If you delete a file while OneDrive is paused or offline, the deletion does not sync to the cloud when ready. When OneDrive comes back online, it will sync the deletion and remove the file from your cloud storage too.

Recover deleted OneDrive files within 93 days

OneDrive keeps deleted files in a recycle bin for 93 days. To recover a file, go to onedrive.live.com in your web browser and sign in with your Microsoft account. Click the Recycle bin link on the left side of the page.

Browse the list of deleted files. Right-click the file you want to recover and select Restore. The file returns to its original folder in OneDrive. If you had that folder syncing to your PC, the file reappears on your computer within a few minutes.

After 93 days, OneDrive permanently deletes files from the recycle bin and you cannot recover them. If you realize you deleted something important, recover it as soon as you notice.

Use online-only files to save PC space

OneDrive has a feature called Files On-Demand (or online-only files on some versions) that lets you see all your OneDrive files in File Explorer without storing them on your hard drive. Files appear in your OneDrive folder with a cloud icon next to them, and they read to your PC only when you open them.

To turn on Files On-Demand, right-click the OneDrive icon in your system tray and select Settings. Go to the Files On-Demand tab and check the box for Use Files On-Demand. Click OK. Your OneDrive folder now shows all your files, but only the ones you use regularly stay on your PC. This can save gigabytes of space if you have a large OneDrive library.

You can also right-click individual files in File Explorer and select Free up space to remove them from your PC while keeping them online. The file icon changes to show it is online-only, and you can still open it — it just downloads when you click it.

Check how much space OneDrive is using

To see how much of your PC's hard drive OneDrive is taking up, right-click the OneDrive icon in your system tray and select Settings. Click the Storage tab. You see a breakdown of how much space OneDrive is using, how much you have used in your cloud account, and how much cloud storage you have left.

If OneDrive is using too much space, you have several options: stop syncing folders you do not need on your PC, enable Files On-Demand to keep only active files stored locally, or delete files you no longer need. The storage tab also shows which folders are taking up the most space, so you can target the biggest space-users first.

Pause or disable OneDrive syncing temporarily

If you want to stop OneDrive from syncing without permanently removing files, you can pause it. Right-click the OneDrive icon in your system tray and select Pause syncing. A submenu appears with options to pause for 2 hours, 8 hours, or until you restart your computer. OneDrive stops syncing during this time, so changes you make on your PC do not upload to the cloud, and changes in the cloud do not read to your PC.

When the pause period ends, OneDrive automatically resumes syncing and catches up with any changes that happened while it was paused. This is useful if you are working on files and do not want OneDrive interfering, or if you are troubleshooting sync problems.

To fully disable OneDrive, you can unlink your account. Right-click the OneDrive icon, select Settings, go to the Account tab, and click Unlink this PC. OneDrive stops syncing and removes all synced files from your PC. Your files remain in your OneDrive cloud storage, but they no longer sync to this computer.

Frequently Asked Questions

If I delete a OneDrive file on my PC, does it delete from the cloud too?

Yes, if OneDrive is running and syncing when you delete the file, it removes from both your PC and your cloud storage within a few minutes. The file goes to the OneDrive recycle bin online, where you can recover it for 93 days. If OneDrive is paused or offline, the deletion syncs when it comes back online.

Can I remove OneDrive files from my PC without deleting them from the cloud?

Yes. Stop syncing the folder in OneDrive Settings under the Account tab by unchecking the folder name. The files disappear from your PC but stay in your cloud storage. You can also mark individual files as online-only by right-clicking them and selecting Free up space.

How do I recover a file I deleted from OneDrive?

Go to onedrive.live.com, sign in, and click Recycle bin on the left. Find your file, right-click it, and select Restore. You have 93 days to recover deleted files. After that, they are permanently gone.

Does OneDrive take up a lot of space on my PC?

It depends on how many files you sync. Check the Storage tab in OneDrive Settings to see the exact amount. If space is tight, enable Files On-Demand so only files you use stay on your PC, or stop syncing folders you do not need locally.

What happens if I unlink OneDrive from my PC?

Unlinked files are removed from your computer, but they stay in your OneDrive cloud storage. You can link OneDrive again later and re-sync those folders, or access them through the OneDrive website.