Share via

how to recover a replace file even after sync on one drive with old file

H L Jain 0 Reputation points
2026-04-04T09:19:27.7766667+00:00

how to recover a replace file even after sync on one drive with old file

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Jess-Q 9,675 Reputation points Microsoft External Staff Moderator
    2026-04-04T10:27:42.8166667+00:00

    Hi @H L Jain

    Regarding your issue, when a file in OneDrive is replaced or overwritten, the previous version is not immediately removed. OneDrive keeps earlier versions of files through its version history feature, which may allow recovery of an older version even after the file has synced. 

    To help check whether any additional versions or recoverable content are available, here are a few steps you can try:  

    1. Check version history from the file’s storage location  
    • Open OneDrive or SharePoint in a web browser. 
    • Click on My files and locate the document, then select the three dots ( … ) next to the file.   
    • User's image
    • Choose Version history and review any versions listed there.  
    • User's image
    • Select the version you want and choose Restore
    • For more details, please refer to: Restore a previous version of a file stored in OneDrive
    1. Restore from the OneDrive Recycle Bin 
    1. Use Restore OneDrive to recover the desired version   
    • Go to OneDrive > Settings > Restore your OneDrive.   
    • User's image
    • Select a restore point before the file was replaced  
    • Check if you can find the previous version of the file. 
    • For more details, please refer to: Restore your OneDrive

    Hopefully it will help work with your issue and if you have any other questions or need further assistance, feel free to ask.    


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".     

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


  2. Q&A Assist
    2026-04-04T09:19:41.4166667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    If a file in OneDrive for Business was replaced/overwritten and the change has already synced, recovery depends on what exactly happened and what features are available in the tenant.

    1. Try restoring a previous version of the file If only one file (or a few files) was overwritten:
    2. Sign in to Microsoft 365 and go to the document library or OneDrive folder that contains the file.
    3. Find the file that was replaced.
    4. Select the ellipsis (…) next to the file and choose Version History.
    5. In Version History, select a version from before it was replaced and click Restore, then OK.
      • This restores the older version as the current file.
    6. Use OneDrive “Restore your OneDrive” (bulk rollback) If many files were deleted, overwritten, corrupted, or infected:
    7. Open OneDrive on the web.
    8. On the top right, select Settings > Options > Restore your OneDrive.
    9. Choose a date/time before the file was replaced (within the last 30 days).
    10. Complete the restore to undo all actions (deletes/overwrites) that occurred after that time.
      • Note: Any files or folders created after the restore point will be moved to the OneDrive Recycle Bin and can be restored from there.
    11. Check the OneDrive / SharePoint Recycle Bin If the original file was deleted (rather than overwritten):
    12. Go to the OneDrive or SharePoint site in a browser.
    13. Open the Recycle Bin.
    14. If not found in the first-stage Recycle Bin, check the second-stage Recycle Bin (Site Collection Recycle Bin in SharePoint).
    15. Select the file and choose Restore.
    16. Check local copies via the sync client If using the OneDrive sync client:
    17. On the Windows PC, open File Explorer.
    18. Browse to the synced OneDrive/SharePoint folder.
    19. Check if there is a still-intact local copy or use Restore previous versions in Windows if available.
    20. If none of the above works If the file is not in Version History, not in any Recycle Bin, and outside the OneDrive 30‑day restore window, native recovery is limited:
    21. As a last resort for SharePoint/OneDrive for work or school, a tenant admin can contact Microsoft 365 support. SharePoint Online keeps backups for 14 additional days beyond deletion, and Microsoft may be able to restore a site collection/library within that window (not individual files).

    If the file has been permanently deleted from the OneDrive Recycle Bin and is outside backup/restore windows, it cannot be recovered using Microsoft’s native tools.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.