
Right-click the desired library in the navigation pane and select Don't show in navigation pane in the context menu. To remove a library from the navigation pane in Windows 10, you can use one of the following methods. Remove a Library from the Navigation pane. If you don't see the change, try restarting your PC. Regardless of the method you are using, the library will appear in the navigation pane. Once you completed the steps, close and reopen File Explorer, and you should no longer see the OneDrive entry on the left pane.

Important: As always, this is a friendly reminder warning that editing the registry is risky, and it can cause irreversible damage to your installation if you don't do it correctly. How to remove OneDrive from File Explorer
