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
- Right-click on the OneDrive icon in the system tray (near the clock) and select Settings.
- In the opened window, go to the Account tab and click on Unlink this PC.
- 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.
- Press Win + R and type
gpedit.msc
to open the Local Group Policy Editor. - Navigate to Computer Configuration → Administrative Templates → Windows Components → OneDrive.
- Double-click on the option Prevent the usage of OneDrive for file storage.
- Select Enabled and click OK.
- 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.
- Press Win + X and choose Command Prompt (Admin) or Windows PowerShell (Admin).
- Enter the command to stop the OneDrive process:
taskkill /f /im OneDrive.exe
- 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
- After completing this command, restart your computer.