How to remove OneDrive from the File Explorer in Windows 10.
- Open the Start menu.
- Search for regedit.exe and press enter.
- If a User Account Control prompt appears, click Yes.
- Navigate to this folder: Computer\HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}.
- With the {018D...} selected, right-click on System.IsPinnedToNameSpaceTree in the main window.
- Click Modify..., change the value to 0, and click OK.
- Restart the File Explorer (if already open), and OneDrive will no longer appear in any of the directories.
Video:
https://www.youtube.com/watch?v=yueV0LuzM3s