
Disable OneDrive via Local Group Policy Editor
Type “gpedit.msc” (without intverted commas) in the Start or Search box;

Navigate to;
Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > OneDrive
And double-click “OneDrive”;

Next, double-click “Prevent the usage of OneDrive for file storage” setting;

Click “Disabled” option and press “Apply” button. Click “OK” when done;

Note: Windows 10 Home Edition users can’t use Group Policy Editor.
Uninstall Windows 10 OneDrive via Command Prompt
Right-click on the Windows icon in the taskbar and select Command Prompt (Admin).

Type in taskkill /f /im OneDrive.exe to terminate any OneDrive processes and hit Enter.
For 32 bit Windows 10, type this command;
%SystemRoot%\System32\OneDriveSetup.exe /uninstall
For 64 bit Windows 10, type the following command in the command prompt;
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall

There won’t be any confirmation dialog or progress bar except OneDrive folder and files still available. To reinstall OneDrive, go to the “%SystemRoot%\SysWOW64\” folder in File Explorer and run the OneDriveSetup.exe program.