If you are using Windows 10 Professional (although this also applies to the Enterprise and Education versions), there is a relatively simple way to turn off OneDrive:
- Hold + S
gpedit.msc in the search field.
- Right-click the result and
Run as administrator to open the
Local Group Policy Editor
- Navigate to
Computer Configuration\Administrative Templates\Windows Components\OneDrive
- Enable the policy titled Prevent the usage of OneDrive for file storage
On the other hand, since the release of the Windows 10 Creators Update (version 1703) in April 2017, Windows 10 Home users can now utilize the following method to remove OneDrive:
Head to either Control Panel > Programs > Uninstall a Program or Settings > Apps > Apps & features. You’ll see a Microsoft OneDrive program appear in the list of installed software. Click it and click the “Uninstall” button.
Windows will immediately uninstall OneDrive, and the OneDrive icon will disappear from the notification area.
(If you ever want to reinstall OneDrive in the future, you’ll need to run the OneDrive installer buried in the Windows system folder. Just head to the C:\Windows\SysWOW64\ folder on a 64-bit version of Windows 10 or the C:\Windows\System32 folder on a 32-bit version of Windows 10. Double-click the “OneDriveSetup.exe” file here and Windows will reinstall OneDrive.)
(Source: How to Disable OneDrive and Remove It From File Explorer on Windows 10)