How to completely uninstall OneDrive on Windows 11

Yes, you can install or uninstall OneDrive on Windows 11 using commands, and here's how.

OneDrive WinGet installation
OneDrive WinGet installation
  • To uninstall OneDrive on Windows 11, open Command Prompt (admin) and run the “winget uninstall Microsoft.OneDrive” command.
  • To install OneDrive on Windows 11, open Command Prompt (admin) and run the “winget install Microsoft.OneDrive” command.

On Windows 10 (or Windows 11), you can use the Windows Package Manager (WinGet) command to uninstall or install the OneDrive sync client application. Although OneDrive comes installed by default on every installation of Windows, sometimes, you may need to reinstall the client because it is not working correctly. Or you may need to remove it because you don’t use it. 

Regardless of the reason, on Windows, in addition to downloading and installing the client manually from the Microsoft website, you can also use the WinGet tool to install and uninstall the app.

WinGet is a command-line tool designed to make it easier to automate the process of searching, downloading, installing, upgrading, and configuring applications on your computer. The tool was thought out for developers, but anyone can install apps, such as OneDrive, Microsoft Teams, and VirtualBox.

In this guide, you will learn how to add or remove the OneDrive application on either Windows 10 or Windows 11.

Uninstall OneDrive on Windows 11

To uninstall OneDrive on Windows 11 with commands, use these steps:

  1. Open Start on Windows 11.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. (Optional) Type the following command to view a list of the app you can uninstall with the Windows Package Manager and press Enter:

    winget uninstall
  4. Type the following command to uninstall OneDrive on Windows 11 and press Enter:

    winget uninstall Microsoft.OneDrive

    WinGet uninstall OneDrive

After you complete the steps, the OneDrive sync client application will be removed from your computer.

Install OneDrive on Windows 11

To install OneDrive on Windows 11, use these steps:

  1. Open Start on Windows 11.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to search the app and press Enter:

    winget search OneDrive
  4. Type the following command to install OneDrive on Windows 11 (or 10) using the app ID and press Enter:

    winget install Microsoft.OneDrive

    WinGet install OneDrive

Once you complete the steps, the Windows Package Manager will download and install the OneDrive app automatically on Windows.

About the author

Mauro Huculak is a Windows expert and the Editor-in-Chief who started Pureinfotech in 2010 as an independent online publication. He is also been a Windows Central contributor for nearly a decade. Mauro has over 12 years of experience writing comprehensive guides and creating professional videos about Windows, software, and related technologies, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me.