Restore your OneDrive

Applies To
OneDrive (work or school) Microsoft 365 OneDrive (home or personal)

If your OneDrive files or folders have been deleted, overwritten, corrupted, or affected by malware, you can restore your entire OneDrive to an earlier date within the last 30 days.

Prerequisites

To use Restore your OneDrive, you need an active Microsoft 365 subscription.

Restore OneDrive to a previous time

Note

  • You can't recover files permanently deleted from your OneDrive recycle bin.
  • Files and folders you created after the selected restore date are moved to your OneDrive recycle bin.
  • Albums aren't restored.
  1. Sign in to the OneDrive website at onedrive.com.

  2. Open Restore.

    • Personal account with a Microsoft 365 subscription: Select Settings > Options > Restore your OneDrive. Buy now.
    • Personal account without a Microsoft 365 subscription: You can restore individual files, but you need a subscription to restore your entire OneDrive.
    • Work or school account: Select Settings > Restore OneDrive.
  3. On Restore your OneDrive, select a date from the list, such as Yesterday, or select Custom date and time. If you're restoring files after automatic ransomware detection, a suggested restore date is provided.

    Screenshot of the Restore your OneDrive date dropdown with Yesterday, One week ago, Three weeks ago, and Custom date and time options.

  4. Use the activity chart and activity feed to review the changes you want to undo.

    Tip

    The Activity chart shows the number of file activities each day over the last 30 days. Use it to identify unusual activity, such as changes caused by malware. The Activity feed shows individual file and folder changes, starting with the most recent. Scroll through the feed or use the slider below the chart to view activity on a specific day.

    Screenshot of the Restore your OneDrive activity chart and activity feed.

  5. When you're ready, select Restore to undo the selected changes.

    Note

    Any files or folders you create after the restore point date go to your OneDrive recycle bin.

    If you change your mind, you can undo the restoration by running Restore your OneDrive again and selecting the previous restore action.

Learn more

If you don't want to restore everything, you can also restore 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.

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.