Heads Up: The Disk Wipe Feature In Windows 11 And 10 Can Leave Your Data Behind
Both Windows 10 and 11 support OneDrive’s Known Folder Move (KFM) feature, which redirects the Desktop, Documents, and Photos folders to OneDrive without disturbing their regular location within File Explorer. When KFM is enabled, OneDrive Files on Demand adds a green check mark icon to these folders, indicating that the files are stored on the local drive, as well as in OneDrive. This feature is handy for moving to a new device, as the Desktop, Documents, and Photos folders on the new device will sync with the folders stored in OneDrive, bringing over all the files stored in those folders on your old device.
According to Rudy, Microsoft is aware of this bug and is working to fix it. In the mean time, Rudy has published a PowerShell Script that forces a full wipe to remove these lingering files, fixing the issue. You can find the fix, as well as Rudy’s detailed explanation, in his blog post.