Press Windows* Key + R .. go to run window and start “regedit” application.
When you go into registry editor. Press Ctrl key + F and search for
Double click System.IsPinnedToNameSpaceTree item and enter value as 0. and click Ok.
The OneDrive icon should be gone from your left side shortcuts of Windows 10 Folder view now!