Share via

Error when uninstalling OneDrive

Dominic DeSimone 0 Reputation points
2023-08-29T12:02:56.81+00:00

Encountered error stating that "OneDrive is not designed to run on Windows or contains an error." Attempting to uninstall OneDrive and remove from PC in order to eventually reinstall a working version from Microsoft Store.

used taskkill to terminate any processes

then ran regedit to remove the OneDrive configuration using the path: HKEY_CURRENT_USER\Software\Microsoft\OneDrive

went into control panel to uninstall OneDrive, upon pressing unistall it would confirm that I wished to uninstall then nothing would happen. attempted this multiple times.

ran winget uninstall Microsoft.OneDrive in both an Admin and User terminal and both responded 'uninstall failed with exit code 2147747483'

please advise further steps needed to remove this application

Windows 11 Pro x64 version 22H2

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Emi Zhang-MSFT 30,191 Reputation points Microsoft External Staff
    2023-08-30T08:35:43.5733333+00:00

    Hi,

    Please try this method to completely uninstall OneDrive:

    1. Open Command Prompt in Administrator mode.
    2. Type in taskkill /f /im OneDrive.exe to terminate any OneDrive processes and hit Enter.

    Then type in either %SystemRoot%\System32\OneDriveSetup.exe /uninstall if you’re using 32-bit Windows 11 or %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall if you’re using 64-bit Windows 11 and hit Enter.

    After that Go to RegEdit on this path: HKEY_CURRENT_USER\Software\Microsoft\OneDrive

    You can remove all folders that include One Drive version and Account folders also can be removed.

    After that restart the pc and install One Drive again.

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Jonathan M Eddy 35 Reputation points
    2026-02-02T14:21:12.89+00:00

    I was also receiving an error when attempting to run OneDriveSetup.exe that said

    "A newer version of OneDrive is installed

    You need to uninstall it first before installing the next version."

    After much trial and error, the only version of OneDriveSetup.exe that did not error was the one in C:\Program Files\Microsoft OneDrive\##.##.####.#### with the #s being the latest/highest version (in my case, the exact folder was C:\Program Files\Microsoft OneDrive\26.002.0105.0001). Hopefully this file is left on your PC, or can be grabbed from another PC with an updated version of OneDrive. You can also force a slightly newer version to install in that folder on a different PC by going to "OneDrive (tray icon) > Settings > About > Get OneDrive Insider preview updates before release = On" and waiting a minute for an update.

    Because I had a damaged install, I did not even run OneDriveSetup.exe with the command-line switches mentioned above, just double-clicked on it, and it reinstalled successfully making a ##.##.####.####_01 folder in C:\Program Files\Microsoft OneDrive and fixing the install. If you do use the command-lime method with switches, keep in mind you may need to also add the switch /allusers to remove per-machine installations as noted in various places online.

    Hope this helps someone.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.