OneDrive's Restore your OneDrive feature helps Microsoft 365 subscribers undo all the actions that occurred on any files and folders within the last 30 days. If any OneDrive files or folders were deleted, overwritten, corrupted, or infected by malware, you can restore your entire OneDrive to a previous time.
Important
- If a file is permanently deleted from your OneDrive Recycle Bin, you can't recover it.
- When restoring, any files or folders you created after the restore point date go to your OneDrive Recycle Bin. You can restore files from there regardless of restore point date.
Prerequisites
To restore your entire OneDrive, you need to have Microsoft 365.
Restore OneDrive to a previous time
Sign in to the OneDrive website at onedrive.com.
- If you sign in with a personal account that includes a Microsoft 365 subscription, at the top of the page, select Settings
> Options, and then select Restore your OneDrive from the left navigation. - If you sign in with a work or school account, go to Settings
> Restore OneDrive.
- If you sign in with a personal account that includes a Microsoft 365 subscription, at the top of the page, select Settings
On the Restore your OneDrive page, select a date from the dropdown list, such as Yesterday, or select Custom date and time. If you're restoring your files after automatic ransomware detection, a suggested restore date is filled in for you.
Use the activity chart and activity feed to review the recent activities that you want to undo.
The daily activity chart shows the volume of file activities in each day for the last 30 days. It gives you an overview of what happened to your OneDrive over time, and it can help you identify any unusual activities. For example, if your OneDrive was infected by malware, you can look for when it happened.
The activity feed shows individual file and folder operations in reverse chronological order. You can scroll down to see previous days or move the slider below the daily activity chart to quickly move to a specific day.Tip
Use the expand and collapse arrow next to each day in the activity feed to show or hide activities for that day.
If you selected Custom date and time, select the earliest activity that you want to undo. When you select an activity, you automatically select all other activities that occurred after that.
Note
Before you select Restore, scroll to the top of the activity feed to review all the activities you are about to undo. When you pick a day in the activity chart, the more recent activities are hidden in the feed, but they're still selected when you select an activity.
When you’re ready to restore your OneDrive, select Restore. This action undoes all the activities you selected.
Your OneDrive file(s) are restored to the state before the first activity you selected.Note
- When restoring, any files or folders created after the restore point date are sent to your OneDrive Recycle Bin.
- If a file is permanently deleted from your OneDrive Recycle Bin, it can never be recovered.
- If you change your mind about the restore you just did, you can undo the restore by running Restore again and selecting the restore action you just did.
- Albums aren't restored.
Learn more
If you don't want to restore everything, you can also restore deleted files from the OneDrive recycle bin or restore a previous version of a file.
For files in SharePoint or Microsoft Teams, you can restore a document library.
Enable and configure versioning for a list or library.
Need more help?
Account support. For help with your Microsoft account and subscriptions, visit Account & Billing Help.
Technical support. For technical support, select Contact Microsoft Support below, enter your problem and select Get Help.
Mobile users can contact Support by opening the OneDrive app and gently shaking your device.
Community support. Communities help you ask questions, give feedback, and hear from experts with rich knowledge. Ask the Microsoft Community. Do not disclose personal or sensitive information in public forums.