How to Remove OneDrive from File Explorer in Windows 10

OneDrive, which is built into Windows 10, can be a convenient tool for syncing files to the cloud. However, not all users need it. If you want to remove OneDrive from File Explorer, follow these steps.

Method 1: Disabling OneDrive through Settings

  1. Right-click on the OneDrive icon in the system tray (near the clock) and select Settings.
  2. In the opened window, go to the Account tab and click on Unlink this PC.
  3. This will stop OneDrive from syncing with your computer. If you wish to remove it entirely from File Explorer, move on to the next method.

Method 2: Using the Local Group Policy Editor

Note: This method is only available for Windows 10 Pro and Enterprise users.

  1. Press Win + R and type gpedit.msc to open the Local Group Policy Editor.
  2. Navigate to Computer Configuration → Administrative Templates → Windows Components → OneDrive.
  3. Double-click on the option Prevent the usage of OneDrive for file storage.
  4. Select Enabled and click OK.
  5. Restart your computer, and OneDrive will no longer appear in File Explorer.

Method 3: Removing OneDrive with Command Prompt

If the previous methods didn't work, you can completely uninstall OneDrive via Command Prompt.

  1. Press Win + X and choose Command Prompt (Admin) or Windows PowerShell (Admin).
  2. Enter the command to stop the OneDrive process:
    taskkill /f /im OneDrive.exe
  3. Then, use the following command to uninstall OneDrive:
    %SystemRoot%\System32\OneDriveSetup.exe /uninstall

    For the 32-bit version of Windows, use:

    %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
  4. After completing this command, restart your computer.