Smart Systems for Home

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

Recover Permanently Deleted Files from OneDrive

· 6 min read · Home Tech

In this article
  1. How OneDrive Deletion Works
  2. How to Recover from the First-Stage Recycle Bin
  3. Recovering from the Second-Stage Recycle Bin
  4. What About Files Deleted Locally (Sync)?
  5. Why Can't I Find My File? Common Causes
  6. Recovering Files After 30 Days (Admin Only)
  7. Alternatives to OneDrive Recycle Bin
  8. How to Prevent Permanent Deletion in the Future
  9. Frequently Asked Questions

Yes, you can often recover permanently deleted files from OneDrive, but only within a limited window. Microsoft keeps deleted files in the recycle bin for 30 days (or longer if you have a Microsoft 365 subscription), and even after that, there is a second-chance recovery option for up to 30 more days. This article explains exactly how to retrieve files you thought were gone forever, what limits apply, and how to avoid losing data in the future.

How OneDrive Deletion Works

When you delete a file in OneDrive, it does not vanish instantly. It first moves to the OneDrive recycle bin (also called the first-stage recycle bin). From there, you can restore it easily by selecting it and clicking "Restore." If you delete it from the recycle bin, or if the 30-day retention period expires, the file moves to the second-stage recycle bin. This is a hidden, admin-accessible bin that holds items for another 30 days. After that, the file is permanently purged from Microsoft's servers and cannot be recovered by any user action.

For personal accounts, the retention period is fixed at 30 days for both stages. For business or education accounts (Microsoft 365), an administrator can extend the retention period up to 93 days for the first stage and up to 30 days for the second stage. If you are a regular user, you cannot extend this yourself; only a global admin can change the settings.

How to Recover from the First-Stage Recycle Bin

  1. Sign in to onedrive.com with the account that owns the files.
  2. In the left navigation pane, click Recycle bin.
  3. Find the file or folder you want. You can use the search box at the top if you have many items.
  4. Select the item(s) by checking the box next to them.
  5. Click Restore at the top of the page. The item will return to its original location.

If you cannot find the file, it may have been deleted by someone else in a shared folder. In that case, check the Site recycle bin (for SharePoint) or ask the owner to restore it. Also, note that files deleted from a shared folder go to the recycle bin of the person who deleted them, not necessarily yours.

Recovering from the Second-Stage Recycle Bin

If the file is not in the recycle bin you see, it might be in the second-stage bin. This is only accessible to a Microsoft 365 administrator. If you are an admin:

  1. Go to the Microsoft 365 admin center (admin.microsoft.com).
  2. Navigate to Admin centers > SharePoint.
  3. In the left menu, click Recycle bin (under Sites).
  4. If the item is not there, click Second-stage recycle bin at the bottom of the page.
  5. Select the item and click Restore.

For personal accounts, there is no second-stage bin. Once the 30 days pass, the file is gone permanently. However, there is a lesser-known feature: Version history. If you had edited the file before deletion, you might be able to restore an earlier version from the parent folder (if the folder still exists). But this only works if the file itself was not deleted from the recycle bin.

What About Files Deleted Locally (Sync)?

If you use OneDrive sync on your computer, deleting a file locally also deletes it from the cloud. The file goes to your local recycle bin (Windows) or Trash (Mac) first, but only if you deleted it via File Explorer/Finder. If you deleted it from the OneDrive website, it does not go to your local recycle bin. If you emptied your local recycle bin, the file is still in the OneDrive recycle bin (first stage) for 30 days.

However, if you had "Files On-Demand" enabled, the file might not have been downloaded to your device. In that case, deleting the online-only file (the placeholder) does not delete the actual cloud copy; it just removes the placeholder. To permanently delete the cloud copy, you must delete it from the OneDrive website or from the sync client with the option "Delete locally and from OneDrive."

Why Can't I Find My File? Common Causes

  • Wrong account: You might have multiple Microsoft accounts. Check which account you are signed in with.
  • Deleted from a shared folder: The file may be in the recycle bin of the person who deleted it, not yours.
  • Retention period expired: If more than 30 days have passed (or 60+ for second-stage), the file is unrecoverable.
  • Files On-Demand confusion: The file might be online-only and you deleted the placeholder, thinking you deleted the file.
  • OneDrive Personal Vault: Files in the Personal Vault have a separate recycle bin. Check that bin as well.

Recovering Files After 30 Days (Admin Only)

For Microsoft 365 business accounts, an admin can enable Preservation Hold or Legal Hold before deletion to keep files indefinitely. If a hold is applied, the file is not actually deleted; it is hidden and can be recovered via eDiscovery. But this is a proactive measure, not a reactive one. If you have already deleted the file and the retention period has passed, there is no way to recover it, even with admin rights. Microsoft does not keep backups beyond the retention period.

Alternatives to OneDrive Recycle Bin

  • Version history: Right-click a file in OneDrive and select "Version history" to restore an earlier version. This works even after deletion if the folder still exists.
  • Local backups: Use File History (Windows) or Time Machine (Mac) to back up your OneDrive folder locally. This gives you an independent copy.
  • Third-party backup services: Services like Backblaze or Carbonite can back up your OneDrive folder to a separate cloud.
  • Export from Microsoft 365: If you have Microsoft 365, you can export your entire OneDrive data to a .pst or .zip file periodically.

How to Prevent Permanent Deletion in the Future

  1. Enable OneDrive Files On-Demand and keep important files online-only so you don't accidentally delete them locally.
  2. Set up File History (Windows) or Time Machine (Mac) to back up your OneDrive folder.
  3. Use OneDrive Personal Vault for sensitive files, which requires an extra authentication step to delete.
  4. Periodically download important files to an external drive or another cloud service.
  5. If you are an admin, consider extending the retention period in the SharePoint admin center to 93 days.

Frequently Asked Questions

Can I recover files deleted from the recycle bin after 30 days?

For personal accounts, no. Once the 30-day period passes, the file is permanently purged. For business accounts, there is a second-stage recycle bin that holds items for another 30 days, but after that, it's gone unless a legal hold was placed.

Does emptying the local recycle bin affect OneDrive?

No, emptying your local recycle bin does not delete files from OneDrive cloud. The cloud recycle bin is separate. However, if you delete a file from File Explorer and then empty the local recycle bin, the file is still in the OneDrive recycle bin for 30 days.

Can I recover a file that was deleted by someone else in a shared folder?

Yes, if the file was deleted by a collaborator, it goes to that person's recycle bin. You need to ask them to restore it. If the folder is a SharePoint site, the site admin can also restore from the site recycle bin.

Is there a way to recover files after the second-stage recycle bin expires?

No, not through OneDrive. Microsoft does not keep copies beyond the retention period. Your only hope is a local backup or a third-party backup service.

Does OneDrive keep deleted files if I cancel my subscription?

If you cancel your subscription, your account is downgraded to free storage. If your files exceed the free quota, they become read-only, but they are not deleted immediately. After a grace period (usually 90 days), Microsoft may delete the files to free up storage. The recycle bin is not retained after the account is closed.