Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Restore Deleted or Modified Files in OneDrive

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, OneDrive can restore deleted or modified files, and in most cases you can do it yourself in a few clicks without any special software. OneDrive keeps deleted files in its recycle bin for 30 days (or longer if you have a business plan), and it also keeps version history for files that have been changed. This guide walks you through both methods, plus how to recover an entire folder or library if something goes wrong.

What You'll Need

  • A Microsoft account with access to the OneDrive files you want to restore.
  • If the files were shared with you by someone else, you need at least view or edit permission from the owner.
  • For version history, the file must have been saved to OneDrive (not just stored locally on your device).
  • If you're using a work or school account, your administrator may have set a shorter or longer retention period, so check with them if you can't find your files.

Step-by-Step

Restore a Deleted File (Recycle Bin)

  1. Go to onedrive.com and sign in with your Microsoft account.
  2. In the left navigation pane, click Recycle bin. (If you don't see it, click the menu icon (☰) at the top left to expand the sidebar.)
  3. Find the file or folder you want to restore. You can use the search box at the top if you have many items.
  4. Right-click the item (or click the circle that appears when you hover over it) and select Restore. The item will be returned to its original location.
  5. If you deleted a file from your computer's OneDrive folder, it also goes to the recycle bin on the web, so you can restore it there. If you emptied the recycle bin, skip to the “Restore an Entire Library” section below.

Restore a Previous Version (Modified or Overwritten File)

  1. Go to onedrive.com and sign in.
  2. Navigate to the folder that contains the file you want to restore.
  3. Right-click the file and select Version history (or click the file to open it, then click the “...” (More actions) button and choose Version history).
  4. A panel will open on the right showing a list of saved versions, with dates and times.
  5. Click the version you want to restore. You'll see a preview of that version.
  6. Click Restore to make that version the current one. This will overwrite the current version, but you can always go back to the newer version later if needed.
  7. If you only want to keep the old version as a copy without overwriting the current one, click Download instead, then upload it as a separate file.

Restore an Entire OneDrive Library (for Personal Accounts)

  1. Go to onedrive.com and sign in.
  2. Click the Settings (gear) icon at the top right, then select Options.
  3. In the left menu, click Restore your OneDrive.
  4. You'll see a calendar and a list of recent activities. Choose a date and time to restore your OneDrive to that point. This will undo any changes made after that time, including deletions, edits, and additions.
  5. Click Restore and confirm. The restore process may take a while, and you'll get a notification when it's done.

For Work or School Accounts (SharePoint)

  1. If your OneDrive is part of Microsoft 365 for business, go to the SharePoint site that hosts your OneDrive (usually yourcompany.sharepoint.com/personal/yourname).
  2. Click the Settings gear icon, then Site contents.
  3. Click Recycle Bin in the top right. This shows items deleted by you or others.
  4. Select the items you want and click Restore.
  5. If you need to restore an entire document library to a previous point, go to the library, click Settings (gear) > Library settings, then click Restore this library under “Permissions and Management.” Choose a date and time and follow the prompts.

Common Mistakes

  • Looking in the wrong place: Files deleted from your computer's OneDrive folder go to the web recycle bin, not your computer's Recycle Bin. Always check onedrive.com first.
  • Waiting too long: The recycle bin only keeps items for 30 days (for personal accounts). After that, they're permanently gone unless you have a backup.
  • Restoring the wrong version: When using version history, double-check the date and time of the version you're picking. Restoring an old version will overwrite your current work.
  • Not checking the recycle bin before using “Restore your OneDrive”: The “Restore your OneDrive” feature is powerful but can also undo recent changes you actually want to keep. Use it only when you can't find the file in the recycle bin or version history.

Tips

  • If you frequently modify files, enable Files On-Demand so that all your files are stored in the cloud and version history is always available.
  • For important files, consider setting up a OneDrive Personal Vault—it adds extra security but doesn't change versioning.
  • If you're using OneDrive on your phone, you can also access the recycle bin and version history from the mobile app: tap the file, then look for “Version history” or “Recycle bin” in the app's menu.
  • To avoid losing work, periodically download a copy of critical files to an external drive or another cloud service.
  • If you're working on a shared document and someone else overwrites your changes, use version history to restore your version—just be aware that others may have made changes you want to keep.

Troubleshooting

If the steps above don't work, try these in order:

  1. Check the recycle bin again: Sometimes the recycle bin has multiple pages. Scroll down or use the search bar to make sure you're not missing the item.
  2. Sign out and sign back in: Occasionally, the web app doesn't show the latest recycle bin contents. Sign out, close the browser, then sign in again.
  3. Try a different browser or device: If the version history panel doesn't load, try Edge, Chrome, or the OneDrive desktop app.
  4. Check if the file is in a shared folder: If the file was shared with you, the owner may have deleted it. Ask the owner to restore it from their recycle bin.
  5. If the file is gone from the recycle bin: For personal accounts, you may still be able to use “Restore your OneDrive” to go back to a date before the deletion. For business accounts, contact your IT administrator—they may have a backup or a longer retention policy.
  6. If version history is missing: Version history only works for files that were saved to OneDrive (not just stored locally). If you only saved the file on your computer, you won't see versions. Also, some file types (like OneNote notebooks) have a different versioning system.

Frequently Asked Questions

How long does OneDrive keep deleted files?

For personal accounts, deleted files stay in the recycle bin for 30 days. For work or school accounts, the default is 93 days, but your administrator can change it.

Can I restore a file that was deleted from the recycle bin?

If the recycle bin is emptied, the file is permanently deleted and cannot be restored through OneDrive. However, if you have a personal account, you can try the “Restore your OneDrive” feature to roll back to a date before the deletion—this may bring it back.

Does version history work for all file types?

Version history works for most file types stored in OneDrive, including Office documents, PDFs, images, and videos. However, it may not work for files that are not supported by OneDrive's preview system, such as some database files.

Can I restore a file that was overwritten by a sync conflict?

Yes. If a sync conflict created a copy like “file (1).docx,” you can simply rename it. If the original was overwritten, use version history to restore the previous version.

Will restoring an old version affect other people who have access to the file?

Yes. When you restore a version, it becomes the current version for everyone who has access to that file. If others have made changes after that version, those changes will be lost (though they can be recovered from version history if needed).

Is there a way to recover files after the 30-day recycle bin period?

For personal accounts, not through OneDrive itself. You would need a separate backup, such as a local copy or another cloud service. For business accounts, your administrator may have a retention policy or backup that can recover it.