Open Settings
Go to Apps
Select Installed apps or Apps & features
Find Microsoft OneDrive
Click the three dots or select OneDrive
Choose Uninstall
Confirm the uninstall
Open Control Panel
Go to Programs
Select Programs and Features
Find Microsoft OneDrive
Right-click it
Choose Uninstall
Open File Explorer
Go to C:WindowsSysWOW64
Run OneDriveSetup.exe to remove the 32-bit version
Or go to C:WindowsSystem32
Run OneDriveSetup.exe to remove the 64-bit version
Open Command Prompt as administrator
Run taskkill /f /im OneDrive.exe
Run %SystemRoot%SysWOW64OneDriveSetup.exe /uninstall
Open Task Manager
End any OneDrive process
Remove OneDrive from Startup apps if needed
Open Group Policy Editor
Go to Computer Configuration
Go to Administrative Templates
Go to Windows Components
Open OneDrive
Enable Prevent the usage of OneDrive for file storage
Open Registry Editor
Go to HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsOneDrive
Create or set DisableFileSyncNGSC to 1
Delete the OneDrive folder from File Explorer if you no longer need local files
Unlink OneDrive from your account if you want to stop syncing only
Restart your PC after uninstalling
