The Three Ways to Remove OneDrive Files from Your PC
You can remove OneDrive files from your computer in three distinct ways, and which one you choose depends on whether you want to keep the file in your OneDrive account online or delete it entirely. The simplest method is to delete the file from your OneDrive folder on your PC — this removes it from your computer but keeps it in your OneDrive account for 93 days before permanent deletion. You can also use Files On-Demand, a feature that stores files only in your OneDrive account and shows them on your PC without taking up disk space. The third option is to unlink your OneDrive account from your PC entirely, which stops syncing but does not delete any files.
Each method serves a different purpose. If you want to free up space but keep your files safe online, delete from your PC. If you want to keep files accessible but not stored locally, use Files On-Demand. If you want to stop using OneDrive on this computer altogether, unlink your account. Understanding which method matches your goal will prevent accidental data loss and help you manage your storage efficiently.
Key Takeaways
- Deleting a file from your OneDrive folder on your PC removes it from your computer but keeps it in your OneDrive account's recycle bin for 93 days.
- Files On-Demand lets you see all your OneDrive files on your PC without storing them locally, freeing up disk space while keeping files accessible.
- You can turn on Files On-Demand in OneDrive settings under the Cloud tab by checking "Use Files On-Demand".
- Unlinking OneDrive from your PC stops syncing but does not delete files — they remain in your OneDrive account online and on any other linked devices.
- Permanently deleted files can be recovered from your OneDrive recycle bin within 93 days, but after that they cannot be restored.
Delete Files from Your OneDrive Folder on Your PC
The most straightforward way to remove OneDrive files from your computer is to delete them from your OneDrive folder just as you would delete any other file. Open File Explorer, navigate to your OneDrive folder (usually located at C:\Users\[Your Username]\OneDrive), right-click the file or folder you want to remove, and select Delete. The file moves to your Recycle Bin on your PC first, then to your OneDrive recycle bin after you empty your computer's Recycle Bin.
Once a file is in your OneDrive recycle bin, it stays there for 93 days. During this time, you can recover it by going to OneDrive.com, clicking the recycle bin icon, finding the file, and selecting Restore. After 93 days, the file is permanently deleted from your OneDrive account and cannot be recovered. This method is useful when you want to free up space on your computer but are not ready to lose the file permanently.
Use Files On-Demand to Keep Files Online Without Local Storage
Files On-Demand is a OneDrive feature that shows all your files and folders on your PC without actually storing them on your hard drive. When you enable this feature, files appear in your OneDrive folder with a cloud icon next to them, indicating they exist only online. If you open a file, OneDrive downloads it temporarily to your computer so you can work with it, then removes it after you close it (depending on your settings). This approach frees up significant disk space while keeping your files when ready accessible.
To turn on Files On-Demand, right-click the OneDrive icon in your system tray (bottom right of your screen), select Settings, go to the Cloud tab, and check the box next to "Use Files On-Demand". Once enabled, you will see a cloud icon next to files that are stored only online. You can also right-click any file and select "Always keep on this device" to read and store it permanently on your PC, or "Free up space" to remove it and keep only the online version.
Files On-Demand works best if you have a reliable internet connection, because you need to read files when you want to use them. If you frequently work offline or have a slow connection, this method may be frustrating. However, for most users with broadband internet, it is an effective way to access your entire OneDrive without filling up your computer's storage.
Unlink Your OneDrive Account from Your PC
If you want to stop syncing OneDrive to your computer entirely, you can unlink your account. This removes the OneDrive folder from your PC and stops all syncing, but it does not delete any files — they remain in your OneDrive account online and on any other devices where you have OneDrive linked. To unlink, right-click the OneDrive icon in your system tray, select Settings, go to the Account tab, and click "Unlink this PC".
OneDrive will ask whether you want to keep or delete the OneDrive folder on your computer. If you select "Delete", the local OneDrive folder is removed from your PC, but your files remain in your OneDrive account. If you select "Keep", the folder stays on your computer but stops syncing — any changes you make to files in that folder will not be reflected in your OneDrive account. Most users choose Delete to clean up their computer completely.
After unlinking, you can still access your OneDrive files through OneDrive.com in your web browser, or you can link your account to this PC again later by signing in to OneDrive. Unlinking is useful if you are selling or giving away your computer, or if you want to use a different account on this device.
Recover Deleted Files from Your OneDrive Recycle Bin
If you delete a file by mistake, you have 93 days to recover it from your OneDrive recycle bin. Go to OneDrive.com, sign in with your account, and click the recycle bin icon (usually in the left sidebar). You will see all files deleted in the past 93 days. Click the file you want to restore, then click Restore at the top of the page. The file returns to its original location in your OneDrive account and on any synced devices.
If you permanently delete a file from your OneDrive recycle bin (by selecting it and clicking Delete Permanently), it cannot be recovered. For this reason, it is worth checking your recycle bin before emptying it. If you are the administrator of a Microsoft 365 account, you may also be able to recover files from the admin recycle bin for up to 93 days after they are deleted from the user's recycle bin, but this requires access to the Microsoft 365 admin center.
Manage Storage and Avoid Running Out of Space
OneDrive provides free storage that varies by account type — typically 5 GB for a free Microsoft account, and more for Microsoft 365 subscribers. If you are running out of space, you have several options: delete files you no longer need, use Files On-Demand to store files only online, purchase additional storage through your OneDrive settings, or upgrade to a Microsoft 365 subscription for more storage. You can check how much storage you are using by going to OneDrive.com, clicking Settings, and selecting Storage.
Large files like videos, high-resolution photos, and backup files consume storage quickly. If you have files you want to keep but do not need on your PC, Files On-Demand is the most practical solution. If you have files you do not need at all, deleting them frees up space both on your computer and in your OneDrive account. Regularly reviewing what you have stored can prevent you from hitting your storage limit unexpectedly.
Frequently Asked Questions
What happens to my files if I delete them from my OneDrive folder on my PC?
Deleting a file from your OneDrive folder removes it from your computer and moves it to your OneDrive recycle bin. The file stays in the recycle bin for 93 days, during which you can restore it. After 93 days, it is permanently deleted from your OneDrive account.
Can I recover a file after I empty my Recycle Bin?
Yes. Emptying your computer's Recycle Bin moves the file to your OneDrive recycle bin, where it stays for 93 days. You can recover it from OneDrive.com by clicking the recycle bin icon and selecting Restore. Once the 93-day period ends, the file cannot be recovered.
Does unlinking OneDrive delete my files?
No. Unlinking your OneDrive account from your PC stops syncing but does not delete your files. They remain in your OneDrive account online and on any other devices where you have OneDrive linked. You can access them through OneDrive.com or link your account to this PC again later.
Will Files On-Demand work if I do not have internet?
Files marked with a cloud icon in Files On-Demand are stored only online and require an internet connection to open. Files you have marked "Always keep on this device" are stored locally and work offline. If you need to work offline frequently, Files On-Demand may not be practical for all your files.
How much storage do I get with OneDrive?
A free Microsoft account includes 5 GB of OneDrive storage. Microsoft 365 subscribers typically receive 1 TB (1,000 GB) of storage per person. You can purchase additional storage separately, or check your current usage and storage limit by going to OneDrive.com and clicking Settings.
