One-drive in Windows 8.1 and Windows 10 can be disabled through your computer's Local Group Policy Editor. This doesn't remove One-drive from your PC, but it stops it from syncing with the cloud or connecting with other apps, and removes it from the navigation pane in File Explorer.
First, you have to create a new key with the name OneDrive in HKEY_LOCAL_MACHINE > Software > Policies > Microsoft > Windows (right-click). Then, you have to create a new DWORD (32-bit) value with the name DisableFileSyncNGSC under the newOneDrive key and set it to 1.After you sign out and sign in again, the One Drive icon will have disappeared from File Explorer, and OneDrive can no longer sync data with the Microsoft cloud.
The policy disables OneDrive on Window 10 computers only if you use the ADMX template for Windows 10. You can easily verify which ADMX template you are working with.
The supported-on field of the newer policy, which also works for Windows 10, contains “At least Windows Server 2008 R2 or Windows 7” instead of “at least Windows 8.1 or Windows RT 8.1.”