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
{018D5C66-4533-4307-9B53-224DE2ED1FE6}
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!