You’ve deleted some files on your computer, and you’ve emptied the Recycle Bin.
Now you wish you hadn’t deleted that one important file. Whoops.
On top of that, you did all this a few days ago, so data recovery tools are unlikely to work.
If you’ve been doing your work within your OneDrive folder, however, there is hope.
Become a Patron of Ask Leo! and go ad-free!
OneDrive’s Recycle Bin
Backing Up In Windows 10
This article is excerpted from Backing Up In Windows 10, available now. Top-to-bottom, end-to-end, Backing Up In Windows 10 will walk you through all the steps you need to keep your data safe, using Windows 10's built-in tools, as well as a free alternative.
Did you know OneDrive has a Recycle Bin of its own? For the longest time, I didn’t. It wasn’t until the scenario I outlined above actually happened to me1 that I found it out of desperation.
OneDrive’s Recycle Bin works just like the Recycle Bin on your PC: when you delete a file in your OneDrive folder, it’s not really deleted, but instead moved to your OneDrive Recycle Bin.
OneDrive’s Recycle Bin is completely separate from the one on your computer, and has different rules about how long it keeps things. Your computer’s Recycle Bin permanently deletes older files to make room when it fills up. The OneDrive Recycle Bin permanently deletes files after 30 days.
How to use the OneDrive Recycle Bin
For this example, I’ll start with four files in a OneDrive folder.
Those files are on my computer, in a subfolder of my OneDrive folder called “C:\OneDrive\Ask Leo! Examples”. Since they’re in my OneDrive folder, they’ve also automatically been uploaded to my online OneDrive account.
For clarity, my OneDrive Recycle Bin is empty. You can view the contents of your own OneDrive Recycle Bin by clicking on the Recycle bin item on the left-hand menu in OneDrive online.
On my computer, I delete one of the files. Within a few seconds (or minutes, depending on your internet connection), that deletion is mirrored to OneDrive online, and I’m left with only three files in both locations.
Restoring a recycled file
In OneDrive online, click on that Recycle bin link in the left-hand menu to view a list of files deleted in the last 30 days. In my case, that’s the file I just deleted. Right-click on the file you want to restore, and click on Restore.
The file will be restored to its previous location in your OneDrive folder online. As soon as your computer’s OneDrive app synchronizes (typically in a few seconds or minutes), the file will reappear on your computer as well.
Recycle bin and philosophy
As a matter of safety and general philosophy, you should never count on the Recycle Bin being there.
I say that because I hear from people who purposely place things in their Recycle Bin and are surprised when those things disappear — either through the mechanisms I described earlier, or through explicit Recycle Bin cleaning. The Recycle Bin is not meant as a place to keep things; it’s a safety net and nothing more. If you want to keep files, but want them out of your way, create and manage your own folders. Then you remain in control.
This applies to the Recycle Bin on your computer as well as the one in OneDrive. They’re both good safety nets. Like any safety net, you hope you never need it, and should take action to avoid relying on it.
Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.
I'll see you there!
Download (right-click, Save-As) (Duration: 4:12 — 2.0MB)
8 comments on “Recover Deleted Files in OneDrive”
Thanks for teaching us about ‘this recycle bin that separately exists’ on one drive online in a non-synchronized manner. I was completely unaware of this feature. The ask leo articles have become a part of my life and I get a smile of happiness on my face when I see an email from ASK LEO in my mailbox. Personally, I do not use recycle bin and always use shift+del command. I just think deeply more than once before erasing anything or formatting any hard drive or CD. Since this prolonged practice has made me so perfect, the phrase “you’ve deleted some files on your computer, and you’ve emptied the Recycle Bin. Now you wish you hadn’t deleted that one important file. Whoops.” makes me laugh and remember my childhood days when I, while having never learned the shift+del command, used to work on windows 95 and used the recycle bin.
Hello.. I deleted 6000 photos from my one drive not knowing it would delete it from windows computer storage as well. It appears my recycle bin could only store 1600 because that’s all I could restore. How do I get the other 4500 photos? Thanx, Bryan
Look into OneDrive’s file history, and/or Recycle Bin features online.
I had my Excel spreadsheets set on AutoSave, and one of the files said it was corrupted when I tried to open it on my computer. No problem, I thought. I’ll just get it from OneDrive. That didn’t work, as it AutoSaved the corrupted file as soon as it tried to open it. So everything was lost as far as OneDrive was concerned. Fortunately, I had saved the file on an external hard drive several days before so I had the majority of the file. I no longer use AutoSave, or maybe I was expecting OneDrive to act as a backup, not just a synchronized file. What am I missing here?
Did you look for older versions in the OneDrive Recycle Bin / Trash?
I turned of Autosave in Excel and Word. Another problem is that you may make a bunch of changes and not want to save them, but with Autosave, it gets saved when you exit without giving you a chance to say don’t save.
One problem is that I’ve had Autosave enabled with some Office updates. Why can’t you get it together Microsoft and leave our settings alone?
Hello, I very much appreciate the lessons on OneDrive. Is it possible to transfer or copy files from my out-of-space and frozen Onedrive to my External Hard Drive? If so, how do I do that? Thanks!
Move them from the OneDrive folder to the external drive the same way you would move from any other folder. Moving it will remove it from Microsoft’s OneDrive cloud and free up space on it.
Be sure to keep a backup of those moved files.