Yes, you can restore data from OneDrive, and this guide shows you exactly how to recover deleted files, restore an entire OneDrive to an earlier state, and get back versions of files you have overwritten. You will learn the steps for the OneDrive website, the desktop app, and Windows File Explorer, plus what to do when the standard recovery options do not work.
How OneDrive File Recovery Works
OneDrive keeps deleted files and older versions of files for a limited time, so you can undo mistakes. When you delete a file or folder, it goes to the OneDrive recycle bin, where it stays for 30 days by default (unless an administrator has changed the retention policy). After that, it is permanently purged. For files you have edited, OneDrive keeps previous versions for up to 500 versions or until the version limit is reached, whichever comes first. This version history is what lets you restore an earlier draft of a document.
For the entire OneDrive, Microsoft also offers a “Restore your OneDrive� feature that rolls back all files and folders to a point in time within the last 30 days. This is useful if you have been hit by ransomware, a mass deletion, or a sync error that corrupted many files at once.
Restore Deleted Files from the OneDrive Recycle Bin
If you deleted a file and it has not been more than 30 days, follow these steps:
- Go to onedrive.com and sign in with your Microsoft account.
- In the left navigation pane, select Recycle bin.
- Find the file or folder you want. You can use the search box at the top if you have many items.
- Right-click the item and choose Restore. Alternatively, select the item and click the Restore button in the toolbar.
- The item reappears in its original location. If the original folder was also deleted, OneDrive recreates it.
If you do not see the item in the recycle bin, it may have been permanently deleted, or it might be in the Second-stage recycle bin (for work or school accounts). Check with your IT administrator if you have a business account.
Restore a Previous Version of a File
If you have overwritten a file and want the older content, OneDrive keeps version history for most file types (Office documents, PDFs, images, etc.). Here is how to get an older version:
- Go to onedrive.com and navigate to the file.
- Right-click the file and select Version history.
- A panel opens showing all saved versions, with timestamps.
- Click the three dots (…) next to the version you want and choose Restore. This makes that version the current one.
- You can also choose Download to save the older version as a separate file without overwriting the current one.
Version history is also available in the OneDrive desktop app: right-click the file in File Explorer, select OneDrive > Version history. This works even if the file is not currently synced, as long as the app is running.
Restore an Entire OneDrive to a Previous Time
This feature is a lifesaver when many files are deleted or encrypted by ransomware. It restores the entire OneDrive to a snapshot from within the last 30 days.
- Go to onedrive.com and sign in.
- In the left pane, click Settings (the gear icon) and then Options.
- Under OneDrive, select Restore your OneDrive.
- Choose a date and time from the calendar. The system shows how many files will be affected.
- Click Restore. The process may take a while, depending on the number of files.
Important: This restores the entire OneDrive, not just one folder. Any files created or changed after the chosen time will be lost unless you have them elsewhere. It is a good idea to download any new files before performing a full restore.
Restore Files from the OneDrive Desktop App (Windows)
If you have the OneDrive sync app installed on Windows, you can recover deleted files without opening a browser:
- Open File Explorer and locate your OneDrive folder (usually in your user profile).
- Right-click any file or folder and select OneDrive > Restore previous versions (for a single file) or Version history.
- For deleted files, right-click an empty area in the OneDrive folder and select OneDrive > Recycle bin. This opens the web recycle bin in your browser.
Note: The desktop app does not have a direct “restore deleted file� button; it links to the web recycle bin. But for version history, the right-click menu works offline as long as the file is synced.
Common Problems and How to Fix Them
- File not in recycle bin: Check the Second-stage recycle bin (if you have a work/school account) or contact your admin. For personal accounts, once it is gone from the recycle bin, it is permanently deleted.
- Version history is empty: OneDrive only keeps versions for files that have been edited while synced. If you edited the file offline and never synced, there may be no version history.
- Restore your OneDrive option is greyed out: This feature is only available for OneDrive plans that include it (most personal and business plans). If it is greyed out, your admin may have disabled it.
- Restored files are corrupted: If you are restoring after a ransomware attack, some files may still be encrypted. Run a virus scan before restoring to avoid re-infecting your system.
- Sync conflicts: If you restore a file that is currently open in an app, the restore may create a conflict copy. Close the file before restoring.
Frequently Asked Questions
How long does OneDrive keep deleted files?
Personal accounts keep deleted files in the recycle bin for 30 days. Business accounts may have a longer retention period set by the administrator, often up to 93 days. After that, files are permanently deleted and cannot be recovered by you.
Can I recover a file that was permanently deleted from the recycle bin?
No, not through OneDrive. Once a file is purged from the recycle bin, Microsoft does not offer a way to retrieve it. Your only hope is a local backup (like File History or a third-party backup) or if you had synced it to another device.
Does restoring an older version overwrite my current file?
Yes, when you choose “Restore� from version history, the older version replaces the current one. If you want to keep the current version, download the older version instead and save it with a different name.
Can I restore a folder that was deleted?
Yes, if the folder is in the recycle bin, you can restore the entire folder. OneDrive will recreate the folder and all its contents at the original location. If the folder was deleted a long time ago, it may have been purged.
What is the difference between “Restore� and “Download� in version history?
“Restore� makes the selected version the current file, overwriting the newer one. “Download� saves the selected version to your computer as a separate file, leaving the current version untouched.
Does OneDrive keep versions of files I edit on my phone?
Yes, as long as the file is synced to OneDrive (e.g., through the mobile app or auto-camera upload). Edits made on your phone are treated as new versions and are available in version history.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Best Tech Websites to Follow for Pros & Beginners
- Second Wind Quest Walkthrough: Where Winds Meet6.00 min/km
- Enshrouded Weapon Upgrade Guide: How to Improve Gear5.00 min/km
- Connect Phone to Controller for Cloud Gaming
- Python Search Highlighting: Snippets & Matches
- Secure Boot Battlefield 6 ASUS: Fix & Enable Guide