Microsoft confirms Windows 11 isn't deleting files when it should

Surface Laptop Studio Hero
Surface Laptop Studio Hero (Image credit: Future)

What you need to know

  • Microsoft has confirmed an issue with Windows 11 and Windows 10 that prevents files from being completely deleted after a reset.
  • The bug affects PCs that have synced files through OneDrive or OneDrive for Business.
  • Microsoft is working on a resolution for the issue and has shared a workaround that should help until a permanent fix is available.

Affected PCs may not delete files synced through OneDrive or OneDrive for Business following a reset. The bug affects Windows 11 version 21H2, Windows 10 version 21H2, Windows 10 version 21H1, and Windows 10 version 20H2.

"When attempting to reset a Windows device with apps which have folders with reparse data, such as OneDrive or OneDrive for Business, files which have been downloaded or synced locally from OneDrive might not be deleted when selecting the "Remove everything" option," explains Microsoft. "This issue might be encountered when attempting a manual reset initiated within Windows or a remote reset."

Microsoft is working on a permanent fix for the issue. Until that is available, the company suggests the following workaround:

  • This issue can be prevented by signing out or unlinking OneDrive before resetting your Windows device. For instructions, see the "Unlink OneDrive" section in, Turn off, disable, or uninstall OneDrive.
  • This issue can be mitigated on devices that have already been reset by following the steps in KB5012334—Delete the Windows.old folder using Storage sense in the Settings app.

The Windows.old folder mentioned by Microsoft is where files that have not been successfully deleted appear.

Sean Endicott
News Writer and apps editor

Sean Endicott is a news writer and apps editor for Windows Central with 11+ years of experience. A Nottingham Trent journalism graduate, Sean has covered the industry’s arc from the Lumia era to the launch of Windows 11 and generative AI. Having started at Thrifter, he uses his expertise in price tracking to help readers find genuine hardware value.

Beyond tech news, Sean is a UK sports media pioneer. In 2017, he became one of the first to stream via smartphone and is an expert in AP Capture systems. A tech-forward coach, he was named 2024 BAFA Youth Coach of the Year. He is focused on using technology—from AI to Clipchamp—to gain a practical edge.