Uninstall OneDrive completely from Windows

0
(0)

OneDrive removing in Windows 10 and Windows 11, if you want to do without the pre-installed Microsoft Cloud app, OneDrive can be completely uninstalled from Windows, the icons are also removed from the taskbar and Explorer as well as from the Start menu. We’ll show you how to remove OneDrive from Windows – here’s how it works.

In the first step, insert the following lines into an editor, just do it with the text editor notepad.exe.

@echo off
REM OneDrive uninstall
taskkill /f /im OneDrive.exe
IF EXIST %SystemRoot%\SysWOW64\OneDriveSetup.exe %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
IF EXIST %SystemRoot%\System32\OneDriveSetup.exe %SystemRoot%\System32\OneDriveSetup.exe /uninstall
REG ADD "HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d "0" /f
REG ADD "HKCR\WOW6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d "0" /f

The lines of code with Copy Paste into the Notepad editor.

Uninstall OneDrive completely from Windows

Save the contents of Notepad as onedrive-uninstall.cmd file, i.e. to the Documents folder.

Then, in the second step, run the batch file onedrive-uninstalll.cmd. To do this, press the Windows key and type Command Prompt on your keyboard, and select Run as administrator.

Commnd Prompt Run as administrator

In the open command prompt, switch to the directory where the file onedrive-uninstall.cmd is stored, with enter the change directory command cd %userprofile%\documents press enter then run the batch file.

Uninstall OneDrive in Command Prompt

The saved batch file can now be copied to other systems to remove OneDrive for additional computers if necessary.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Leave a Reply

Your email address will not be published.