Situation: The client needs to re-install the OneDrive. After that, he has two OneDrive folders under his profile or C:\Users\blin. The problem is he can’t delete the old OneDrive folder.
Resolution:
- Restart File Explorer:
Open Task Manager > Processes > Windows Explorer > Right click then Restart - Reset File Explorer:
Open Task Manager > Processes > Windows Explorer > Right click then End task ,
Open Run window, Windows + r from the keyboard then run explorer.exe
- Unlink all OneDrive accounts
- Move the corrupted OneDrive folder to the desktop then delete folder
or you may just delete the folder thru CMD: - Run CMD as administrator > del + file path (del C:\Desktop\Lightroom)
Here are some helpful articles for you:
Fix OneDrive sync problems (microsoft.com)
rmdir | Microsoft Docs
del | Microsoft Docs