Restore a previous version of a file stored in OneDrive

Restore a previous version of a file stored in OneDrive

With online version history, you can see and restore older versions of your files stored in OneDrive using Windows File Explorer, Mac Finder, and Microsoft 365 web apps. Version history works with all file types, including Microsoft 365 files, PDFs, CAD files, photos, videos, and more. If you need to, you may be able to restore deleted OneDrive files or restore deleted SharePoint items from the recycle bin.

Tip: You can also View previous versions of Office files in Office apps.

  1.  Locate the file stored in OneDrive that you want to restore.

  2. You may need to sign in with a personal Microsoft account or your work or school account, then open a Microsoft 365 app, such as OneDrive or SharePoint.

  3.  Select the file that you want to restore to an earlier version (you can only restore one file at a time), right-click, then select Version history.

    Note: In Classic view, select the document, then at the top, select More > Version History.

  4. In the Version History pane, do one of the following:

    If you're using Windows Internet Explorer or Mac Finder, select the ellipses (...) next to the version of the document that you want to restore, and then click Restore.

    Version history pane Windows Explorer

    If you're signed in to OneDrive or SharePoint with a work or school account (such as a Microsoft 365 account), select the ellipses (...) next to the version of the document that you want to restore, and then click Restore.

    Version History pane

    In Classic view or previous versions of SharePoint Server, select the arrow next to the version of the document that you want to restore, and then click Restore.

    Select 'Restore' from the drop-down menu for a selected document version
  5. When you see a confirmation message, click OK.

The document version you selected becomes the current version. The previous current version becomes the previous version in the list.

Notes: 

  • If you sign in with a personal Microsoft account, you can retrieve the last 25 versions. If you sign in with a work or school account, the number of versions will depend on your library configuration.

  • If you're using OneDrive as part of SharePoint Server, your administrator may have turned off document versioning. For more information about SharePoint versioning settings (which also apply to OneDrive for work or school) see Enable and configure versioning for a list or library or How does versioning work in a list or library?

  • If you're signed in to OneDrive with a Microsoft account, items in the recycle bin are automatically deleted 30 days after they're put there. If your recycle bin is full, the oldest items will be automatically deleted after three days. If you're signed in with a work or school account, items in the recycle bin are automatically deleted after 93 days, unless the administrator has changed the setting. See more information about how long deleted items are kept for work or school accounts.

Learn how to Find lost or missing files in OneDrive or View historical versions of Office files.

Need more help?

Online

Get online help
See more support pages for OneDrive and OneDrive for work or school.
For the OneDrive mobile app, see Troubleshoot OneDrive mobile app problems.

OneDrive Admins can also view the OneDrive Tech Community, Help for OneDrive for Admins.

Microsoft virtual support agent icon

Contact Support
If you still need help, contact support through your browser or shake your mobile device while you're in the OneDrive app.

OneDrive Admins can contact Microsoft 365 for business support.

Office 365 community forums

Tips
Letting us know your location may help us resolve your issue more quickly.

All fixed? If you contacted us and OneDrive starts working again, please let us know by replying to the email we sent you.

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×