0xPC Error Codes Look up a code
One safety rule: if a message shows a phone number to call, it is a scam: Microsoft never does that. Check any warning in 5 questions.

Home › Files Gone and OneDrive Problems › OneDrive Files Restore: Roll Back Your Whole Account to an Earlier Date

Files RestoreFiles & OneDrive

OneDrive Files Restore: Roll Back Your Whole Account to an Earlier Date

By Editorial Team · · 9 min read ✓ Checked against Microsoft documentation

In plain English

OneDrive Files Restore can roll your whole account back to an earlier point in time after a bad sync, a mass delete, or a ransomware hit. If you need the bigger picture first, start with the full OneDrive and file recovery hub.

First safe step

Do not restore yet: first check whether one file or lots of files changed. If it is one file, use the OneDrive Recycle Bin path instead of rolling back the whole account.

Try these in order, cheapest first

Roll back only when lots of files changed at once. One file means the Recycle Bin, not a restore.

1What Files Restore does
2Check it is the right problemFree
3Roll back to an earlier dateFree
4What happens after
5If it does not fix it

OneDrive Files Restore can roll your whole account back to an earlier point in time after a bad sync, a mass delete, or a ransomware hit. If you need the bigger picture first, start with the full OneDrive and file recovery hub.

This page is only for whole-account rollback. If one file or a few files were deleted, use the separate OneDrive Recycle Bin path for single deleted files instead, because Files Restore rewinds everything in OneDrive to a chosen date and time.

It also helps to pause before you restore. A missing file can turn out to be a sync delay, a moved folder, or even a different Windows sign-in issue. Check what the sync icons mean before you decide to roll back, and if your Desktop or Documents suddenly seem different, see how to tell a folder move from a true rollback need.

1 What OneDrive Files Restore does and when to use it

OneDrive Files Restore is a point-in-time rollback for your OneDrive account. It tells OneDrive to put your cloud-stored files back to how they were before a broad problem happened, such as a bad sync run, a large accidental delete, or suspicious file changes that fit a ransomware event.

This tool is for account-wide damage, not for one document that went missing. You need an active Microsoft 365 subscription to use it: without one, the restore option is not available, and the Recycle Bin path below is the route to use instead. If you need one deleted item back, use the separate OneDrive Recycle Bin path for single deleted files instead. If the problem may be a sync delay or icon warning, check what the sync icons mean before you decide to roll back before you restore the whole account.

The three most common times to use Files Restore are after a bad sync changed or removed lots of files, after a mass delete affected more than one folder, and after ransomware or other suspicious bulk edits renamed, encrypted, or rewrote many files. If ransomware is the cause, clean all devices with antivirus software before you restore: Microsoft warns that files could get encrypted again if you restore first. It can also help when a change spread across OneDrive so widely that fixing items one by one would take too long. Files Restore covers the last 30 days only: you pick a date in that window, and the activity chart shows file activity for each day in it.

Files Restore does not roll back every file on your PC. It affects the content stored in OneDrive, then those restored cloud changes sync back to your signed-in devices. If your files only seem missing because a known folder was redirected or moved, read how to tell a folder move from a true rollback need. And if Windows loaded the wrong profile, see the guide on temporary profile signs that can look like missing OneDrive files.

2 Before you restore, check that this is the right problem Free

Before you roll anything back, ask one simple question: did one file go missing, or did lots of files change at once? If it is one document, one photo, or one folder, Files Restore is usually the wrong tool. Use the separate OneDrive Recycle Bin path for single deleted files instead of restoring your whole account.

A sync delay can also look worse than it is. If files are still uploading, paused, or showing warning marks, check what the sync icons mean before you decide to roll back. Waiting a few minutes, or fixing the sync problem first, can bring the files back without changing the rest of your OneDrive.

Another common false alarm is a folder move. If your Desktop, Documents, or Pictures suddenly look different, OneDrive folder backup may have changed where those folders point. Check how to tell a folder move from a true rollback need before you restore. In Windows, temporary profile signs that can look like missing OneDrive files can also make your usual files seem gone when they are still in the account.

Files Restore is the better fit when many files were changed, renamed, encrypted, or deleted in a short time, especially after a bad sync or suspicious bulk activity. If the damage happened across the account, not in one item, a point-in-time rollback is the right kind of fix. If a file was deleted outside OneDrive and the bin is already empty, see what to do if the file was deleted outside OneDrive and the bin is already empty.

3 How to roll your OneDrive back to an earlier date Free

  1. Open a web browser and go to onedrive.com. Sign in with the same Microsoft account that holds the files you want to roll back. If you are still not sure this is a whole-account problem, check what the sync icons mean before you decide to roll back before you change anything.
  2. In OneDrive on the web, open Restore. The restore tool lives on the website, not in the desktop sync app or the mobile app.
  3. When the restore page opens, pick a date from the list, such as Yesterday, One week ago, or Three weeks ago, or choose Custom date and time. Use the activity chart, which shows file activity for each day over the last 30 days, and the activity feed, which lists individual file and folder changes starting with the most recent, to find the moment before the bad changes started. If the damage happened after a bad sync, a mass rename, or suspicious encrypted files, pick the last time your files looked normal.
  4. Use the timeline carefully. OneDrive may show recent activity so you can spot the moment things went wrong. If you only lost one or two items, stop here and use the separate OneDrive Recycle Bin path for single deleted files instead of rolling back everything.
  5. Review the activity chart and the activity feed before you select Restore. The safest choice is usually just before the unwanted changes, not days earlier than you need. If your Desktop, Documents, or Pictures only seem to have shifted location, read how to tell a folder move from a true rollback need so you do not undo good files by mistake.
  6. Select Restore to start the rollback. OneDrive undoes the selected changes in the cloud. Leave it time to finish, especially if you have a lot of files. Changes then sync back down to your signed-in PCs and phones.
  7. While the restore runs, avoid making lots of new edits in the same OneDrive account. New changes can make it harder to tell what came from the restore and what came later. If the files only look missing on one Windows sign-in, check for temporary profile signs that can look like missing OneDrive files before you assume the rollback failed.
  8. If you cannot find the restore option, or the right date is not available, do not keep guessing. That usually means the date you need is outside the 30-day window, or the account does not have an active Microsoft 365 subscription. In that case, use the Recycle Bin path for single files instead. If a file was removed outside OneDrive and there is no cloud copy left, see what to do if the file was deleted outside OneDrive and the bin is already empty.
OneDrive on the web showing the Files Restore timeline and date selection screen before confirming a restore | PC Error Codes

✓ Files back to how they were? You can stop here.

4 What happens after the restore finishes

When OneDrive says the restore is done, your files may not all pop back at once. The cloud account usually updates first, then your signed-in PC catches up as syncing continues. Large libraries, lots of small files, and slower internet can all make this take longer.

Your first check should be the OneDrive website, not the folder on your computer. If the web view looks right, give the PC time to sync before you assume the restore failed. If the problem still looks like missing items on one device, review what the sync icons mean before you decide to roll back so you can tell a slow sync from a second problem.

Be aware that files created after the restore point go to the OneDrive Recycle Bin, where you can still restore them. What happens to edits made after the point to files that existed before it is not stated by Microsoft, so save copies of recent work before you restore. Albums are not restored, and if you change your mind you can undo the restore by running Restore your OneDrive again and selecting the previous restore action. That can include newer edits, renamed folders, or files added after the date you picked. If you needed the rollback because of a bad sync, compare a few important folders in the web view and on the PC after syncing finishes. If this happened after a ransomware event, clean all devices with antivirus software before you restore: files could be encrypted again if you restore first, so a security check after the restore is not a substitute for cleaning first.

If the restore completes but your files still seem wrong, the cause may be something else. A folder relocation can still look like lost data, so check how to tell a folder move from a true rollback need. If only one deleted file is missing now, use the separate OneDrive Recycle Bin path for single deleted files instead of restoring the whole account again.

5 If Files Restore does not fix it

If the rollback finished but your files still do not look right, the most common reason is that the restore point was too new or too old. Go back to your OneDrive activity timeline and see whether an earlier point better matches the moment before the bad sync, mass delete, or suspicious bulk change started. If you only need one or two items back, use the separate OneDrive Recycle Bin path for single deleted files instead of rolling the whole account again.

If OneDrive on the web looks correct but your PC still does not, the problem may be an active sync fault rather than a failed restore. In that case, check what the sync icons mean before you decide to roll back and fix the current syncing problem first. A paused client, sign-in problem, or stuck upload can make restored files look missing even when the web copy is fine.

If the missing files are mainly in Desktop, Documents, or Pictures, there is a good chance this is a location change rather than lost data. See how to tell a folder move from a true rollback need before you try another restore. The same goes for temporary profile signs that can look like missing OneDrive files, because a temporary Windows profile can open a different desktop and make your usual folders seem gone.

If none of the available restore dates are old enough, or the file was removed outside OneDrive and there is nothing left to roll back, Files Restore may not be the right recovery path. For that case, read what to do if the file was deleted outside OneDrive and the bin is already empty. If this happened after a ransomware event, run a full security check before trusting any new sync activity.

OneDrive cloud icon with a red X and a OneDrive can't sync now warning | PC Error Codes

Frequently asked questions

Will I lose files I added after the restore point?

Files you created after the point go to the OneDrive Recycle Bin, and you can restore them from there. Pick the latest point before the damage happened, and check any newer files you still need before you select Restore.

How far back can I restore my OneDrive?

Files Restore covers the last 30 days. If the date you need is not in that window, use the nearest listed point, and use the Recycle Bin path for single files that fall outside it.

My files look right on the web but not on my PC. What should I do?

Wait for the PC to finish syncing, then compare the same folder in the web view and on the PC. If the web view is right and the PC still is not, the cause is likely a sync problem rather than the restore itself.

The short version

Files Restore is best used when the damage is wide and recent, and when you can name the point before it happened. If only one file is missing, the separate OneDrive Recycle Bin path for single deleted files is the safer first step, and it leaves the rest of your account alone.

If the files still look wrong after a restore, pause before you roll back again. Read how to tell a folder move from a true rollback need, check the sync state, and try another point in the timeline if the first one was too late or too early.

Different number on screen?

Type it exactly as it appears and get the plain-English answer.

Look up a code

Pop-up telling you to call?

That is a scam. Microsoft never asks you to phone a number.

Check it in 5 questions