You can uninstall the OneDrive desktop app from Windows using PowerShell, then check whether it has been removed. This does not delete files stored in your OneDrive cloud account, but it may affect access to locally synced files. Before you begin, confirm that important files are synced or backed up, and use an administrator account if you plan to remove OneDrive for all users.
What You’ll Need
- A Windows 10 or Windows 11 PC with OneDrive installed.
- PowerShell or Windows Terminal. Use an administrator session for the all-users method; the current-user method can usually run without elevation.
- An internet connection is not usually needed to uninstall the app, but make sure any files you need are available locally or safely backed up.
Step-by-Step
- Check your sync status. Select the OneDrive cloud icon in the notification area. If it says files are syncing, wait for the process to finish. Open OneDrive settings and review which folders are synced. Files marked as online-only may not be available offline after you remove the app. To keep a copy on the PC, use File Explorer to download the files or choose the option to always keep the relevant files on this device, then wait for them to finish downloading. Back up important data separately if needed.
- Open PowerShell. Open Start, type
PowerShellorTerminal, and launch it. For a standard removal from your own Windows account, administrator rights are generally unnecessary. For all-user removal, right-click the app and select Run as administrator, then approve the User Account Control prompt. - Close OneDrive. In PowerShell, run:
taskkill /f /im OneDrive.exe
If Windows reports that no matching process was found, OneDrive may already be closed; continue. If you have unsaved work in files open from a synced folder, save it first. - Run the uninstaller for your Windows installation. Windows commonly installs the 64-bit version of OneDrive under
Program Filesand the 32-bit version underProgram Files (x86). Try the matching command below. The first checks the 64-bit location; the second checks the 32-bit location:if (Test-Path "$env:SystemRoot\SysWOW64\OneDriveSetup.exe") { Start-Process "$env:SystemRoot\SysWOW64\OneDriveSetup.exe" -ArgumentList '/uninstall' -Wait } elseif (Test-Path "$env:SystemRoot\System32\OneDriveSetup.exe") { Start-Process "$env:SystemRoot\System32\OneDriveSetup.exe" -ArgumentList '/uninstall' -Wait } else { Write-Error 'OneDriveSetup.exe was not found in the usual locations.' }
This uses the installer included with Windows and waits for it to finish. The command may return without a success message. Do not download an uninstaller from an unofficial site. - Check whether the app was removed. Open Start and search for OneDrive. You can also check the usual per-user installation folder by running:
Test-Path "$env:LOCALAPPDATA\Microsoft\OneDrive\OneDrive.exe"
A result ofFalsemeans that file is not present there. A shortcut or folder may remain even after the application has been uninstalled, so verify by trying to open the app and checking Windows installed apps rather than treating a leftover folder as proof of failure. - Restart Windows and review File Explorer. Restart the PC, then check whether OneDrive still appears in the Start menu or File Explorer. Your local OneDrive folder may remain and can contain files. Inspect it before deleting anything. Uninstalling the app does not erase your online OneDrive account or cloud files.
- For removal from all user accounts, use Windows settings if available. On a managed or multi-user PC, uninstalling while signed in may only remove or affect the current user’s installation. Open Settings > Apps > Installed apps (or Apps & features on some Windows versions), find Microsoft OneDrive, and select Uninstall. This is generally the clearest supported route for a system-wide app removal. If your Windows build or organization requires a PowerShell-only process, use only an approved deployment or IT procedure; package availability and behavior vary by Windows version.
Common Mistakes
- Deleting the OneDrive folder instead of uninstalling the app. The folder can hold local files. Uninstall through the installer or Windows settings, and review the folder before removing it.
- Assuming cloud-only files are downloaded. An online-only file may be represented by a placeholder in File Explorer. Make files available on the device or confirm they are backed up elsewhere before uninstalling.
- Using the wrong setup path. Windows installations differ, and the 32-bit and 64-bit setup locations are not interchangeable. The command above checks both common locations and reports if neither is found.
- Running every command as administrator. Elevation is not required for every current-user removal and can make it less clear which account is affected. Elevate only when needed for the task.
- Expecting uninstall to unlink or delete cloud data. Removing the desktop app does not remove files from OneDrive online. Unlinking an account and deleting cloud content are separate actions.
Tips
- Keep a separate backup of irreplaceable files. Sync is not the same as an independent backup: deletions and changes can sync to other locations.
- If you only want to stop syncing temporarily, use OneDrive’s pause or quit options instead of uninstalling. If you want to keep the app but stop syncing a particular folder, change the sync selection in OneDrive settings.
- On a work or school PC, check with your IT administrator first. Organization policies can reinstall OneDrive or prevent its removal.
- Record which Microsoft account is connected before removing the app, especially if you may reinstall it later.
Troubleshooting
PowerShell says the setup file was not found: Check whether OneDrive is installed from Windows Settings > Apps. If it is listed, select its uninstall option there. On some Windows builds, the setup executable may be in a different location or the installation may be managed by your organization. Avoid guessing paths or using third-party removal scripts.
The process will not close: Save open files, try the taskkill command again, and restart Windows if necessary. Then run the uninstaller before opening OneDrive again.
OneDrive still appears after uninstalling: Restart the PC and check Installed apps. A stale Start-menu shortcut or File Explorer entry does not necessarily mean the application is still installed. If the app launches, try uninstalling it from Settings and note any error message.
Access to the uninstaller is denied: Sign in with an account that has the required permissions and reopen PowerShell as administrator. On a managed device, contact IT rather than changing policy or permissions yourself.
Files seem missing: Look in the local OneDrive folder and sign in to OneDrive on the web to check cloud contents. Do not empty the Recycle Bin or delete remaining folders until you have confirmed which copy you need.
Frequently Asked Questions
Does uninstalling OneDrive delete my cloud files?
No. Uninstalling removes the desktop app, not your online account or cloud files. Check the OneDrive website to confirm your files are present.
Will my local OneDrive files be deleted?
Uninstalling does not normally remove the local sync folder, but its contents may vary. Inspect and back up the folder before uninstalling or deleting anything.
Do I need administrator rights?
Usually not to remove an installation for your own account. Administrator rights may be needed for a machine-wide change, depending on how OneDrive was installed and your Windows configuration.
Can I reinstall OneDrive later?
Yes. You can install it again using Microsoft’s official OneDrive download or the version provided by Windows or your organization, then sign in and choose what to sync.
Why does OneDrive return after I remove it?
Windows updates, organization management, or another installation process may restore it. If it is a work or school computer, ask IT whether OneDrive is required or deployed by policy.
Should I unlink my account before uninstalling?
It is not required to uninstall the app. If you want to stop syncing or disconnect an account first, use OneDrive settings and confirm that any unsynced files are safe before proceeding.