Open Command Prompt in Administrator mode: 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.
Then type in either %SystemRoot%\System32\OneDriveSetup.exe /uninstallif you’re using 32-bit Windows 10 or %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall if you’re using 64-bit Windows 10 and hit Enter.