When OneDrive sync removes a folder you did not intend to delete, the files can seem gone instantly. This usually happens when the sync engine mirrors a deletion from one device to the cloud or when a local folder is moved outside the OneDrive folder. The folder and its contents are not permanently erased — they move to the OneDrive Recycle Bin or the Files Restore feature. This article explains the exact causes of sync-triggered deletions and provides step-by-step methods to recover the folder using the web interface, the recycle bin, and version history.
Key Takeaways: Restoring a OneDrive Folder Deleted by Sync
- OneDrive Recycle Bin in the web app: Deleted folders stay here for 30 to 93 days depending on your license and admin settings. You can select and restore the folder with one click.
- OneDrive Files Restore feature: Restores your entire OneDrive to a point in time from the last 30 days. Use this if the recycle bin is empty or the folder was deleted longer ago.
- Version history on individual files: If you only need specific files from the deleted folder, right-click each file in the OneDrive web app and choose Version history to recover an older copy.
Why OneDrive Sync Deletes Folders Without Warning
OneDrive sync mirrors file and folder changes across all connected devices. When you delete a folder on one device while sync is active, OneDrive removes that folder from the cloud and from every synced computer. The same thing happens if you move a folder out of the OneDrive local folder — OneDrive treats the move as a deletion from sync. A less common cause is a conflict where two devices try to rename the same folder at the same time, which can result in one copy being deleted. In all these cases, the folder is not permanently destroyed. OneDrive moves the folder to its cloud recycle bin, where it remains for a retention period set by your organization or by Microsoft 365 defaults.
What Happens to the Files Inside the Deleted Folder
Every file that was inside the deleted folder is also moved to the recycle bin as part of that folder. The folder structure is preserved in the bin. If you restore the folder from the recycle bin, all subfolders and files come back to their original location. If the folder was deleted more than 30 days ago, the recycle bin may have already emptied it. In that case, the Files Restore feature can roll back your entire OneDrive to a previous state, recovering the folder as it existed at that time.
How Long Does OneDrive Keep Deleted Folders
For personal Microsoft accounts, the recycle bin holds deleted items for 30 days. For work or school accounts with a Microsoft 365 Business license, the default retention is 93 days. Your OneDrive admin can change this value in the SharePoint admin center. After the retention period ends, the folder is permanently removed and can only be restored from a backup or from Files Restore if the restore point falls within the last 30 days.
Steps to Restore a Deleted OneDrive Folder from the Recycle Bin
This method works when the folder was deleted within the last 30 to 93 days and has not been permanently purged. You will need a web browser and access to your OneDrive account.
- Sign in to OneDrive on the web
Open a browser and go to https://onedrive.live.com. Sign in with the same Microsoft account or work account that owns the deleted folder. - Open the Recycle Bin
In the left navigation pane, click Recycle bin. If you do not see this option, click the three-dot menu icon at the bottom of the left pane and select Recycle bin. - Locate the deleted folder
Scroll through the list of deleted items. Each entry shows the item name, original location, and deletion date. If you have many items, use the search box at the top of the recycle bin page to find the folder by name. - Select the folder
Check the circle next to the folder name. You can select multiple items if needed. - Restore the folder
Click the Restore button at the top of the page. OneDrive moves the folder back to its original location. If the original parent folder no longer exists, OneDrive recreates it.
Steps to Restore a Deleted Folder Using OneDrive Files Restore
Files Restore lets you roll back your entire OneDrive to any point in the last 30 days. This is useful when the recycle bin is empty or when you need to recover a folder that was deleted more than 30 days ago but within the 30-day restore window.
- Sign in to OneDrive on the web
Open a browser and go to https://onedrive.live.com. Sign in with the account that owns the deleted folder. - Open Files Restore
Click the gear icon in the top-right corner and select Options. In the Options pane, click Restore your OneDrive. Alternatively, go directly tohttps://onedrive.live.com/restore. - Choose a restore point
On the Files Restore page, use the activity chart to see when changes happened. Click on a date and time before the folder was deleted. OneDrive will show a preview of what your files looked like at that moment. - Confirm the restore
Click the Restore button. OneDrive will revert all files and folders to the selected state. This process can take a few minutes to several hours depending on the number of files. All users connected to your OneDrive will see the restored folder after the operation completes.
If OneDrive Still Has Issues After the Main Fix
OneDrive Shows the Folder as Empty After Restore
If you restore a folder from the recycle bin but it appears empty in File Explorer, the folder may have been partially deleted. Check the recycle bin again — the files might still be there as individual items. Select all remaining files and restore them. If the folder is still empty, use Files Restore to roll back to a time when the folder was intact.
OneDrive Sync Continues Deleting the Restored Folder
This happens when a synced device still has a deletion instruction queued. Pause OneDrive sync on all devices by right-clicking the OneDrive icon in the system tray and selecting Pause syncing. Wait 10 minutes, then resume sync. The restored folder should now stay in place. If the problem persists, unlink and relink your OneDrive account on the affected device.
OneDrive Recycle Bin Is Empty
If the recycle bin shows no items, the retention period may have expired or an admin cleared the bin. Use Files Restore as described in the previous section. If the folder was deleted more than 30 days ago, contact your Microsoft 365 admin to check if a backup exists in the SharePoint admin center. For personal accounts, no further recovery is possible after 30 days.
Files Restore vs Recycle Bin: Key Differences
| Item | Recycle Bin | Files Restore |
|---|---|---|
| Scope | Restores individual deleted items | Rolls back entire OneDrive to a previous point in time |
| Retention period | 30 days (personal) or 93 days (business) | 30 days from the current date |
| Folder structure | Preserved when restoring a folder | Restores the entire folder and file structure as it was at the chosen time |
| Effect on other files | Only the restored items are affected | All files and folders are reverted to the selected state; any changes made after that point are lost |
| Best use case | Single folder or file deleted recently | Multiple deletions, ransomware recovery, or recycle bin emptied |
You can now restore a OneDrive folder deleted by sync using the recycle bin for recent deletions or Files Restore for older or bulk recovery. Next, review your OneDrive sync settings and enable Files On-Demand so that local deletions do not automatically remove cloud files. As an advanced tip, create a folder-level backup by using the OneDrive web app to download a copy of critical folders to an external drive every month.