Error when uninstalling OneDrive

Dominic DeSimone 0 Reputation points

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

A Microsoft file hosting and synchronization service.
503 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 16,911 Reputation points Microsoft Vendor


    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.

    0 comments No comments