Remove OneDrive from Windows 10

What is OneDrive

Microsoft OneDrive is a file hosting service and synchronization service operated by Microsoft as part of its web version of Office. First launched in August 2007, OneDrive allows users to store files and personal data like Windows settings or BitLocker recovery keys in the cloud, share files, and sync files across Android, Windows Phone, and iOS mobile devices, Windows and macOS computers, and the Xbox 360 and Xbox One consoles.

When you get a fresh copy of Windows 10 a number of preinstalled applications and services. OneDrive will provide an integrated cloud syncing platform. While convenient if you use OneDrive unnecessary if you use any other provider. However, removal is straight forward but not available via the traditional add/remove programs that most users typically use.

How to Remove

PowerShell Script In order to download this file right-click and select “Save Link As”, it should have the extension of .ps1. In order to run it, you can right-click and select “Run with Powershell”. It may ask you to change your system’s execution policy, and you will need to select yes for the script to run.


Stop-Process -Name *OneDrive*
#For 32 bit systems
%SystemRoot%\System32\OneDriveSetup.exe /uninstall
#For 64 bit systems
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
#Removes the OneDrive Folder from the users home directory
Remove-Item -Recurse -Force "$Env:USERPROFILE\OneDrive"