Resetting Microsoft OneDrive can sometimes resolve sync issues and resets all  OneDrive settings. OneDrive will perform a full sync after the reset.

Important: You won't lose files or data by resetting  OneDrive on your computer. Resetting OneDrive only disconnects all your sync connections (including personal and work or school). 

Follow the steps below to reset your OneDrive app

  1. Press the Windows key  and to open the Run dialog box, enter wsreset.exe, then select OK.

  2. A blank Command Prompt window will open, and after about ten seconds the window will close. You can close the Microsoft Store window.

  3. If OneDrive is still not syncing, press the Windows key  and R again.

  4. Copy the exact text below and paste it into the dialog window, then press OK.
    %localappdata%\Microsoft\OneDrive\onedrive.exe /reset

    If you see a "Windows cannot find..." message, copy and paste the text below instead, then press OK.
    C:\Program Files\Microsoft OneDrive\onedrive.exe /reset

    If you see a "Windows cannot find..." message, copy and paste the text below instead, then press OK.
    C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset

    Note: If none of these steps work, you do not have the OneDrive sync app installed. Learn more.

  5. Manually restart OneDrive by going to Start , type OneDrive in the search box, and then click on the OneDrive desktop app.


Source: Reset Onedrive


Notes: 

  • Resetting OneDrive disconnects all your existing sync connections (including personal OneDrive and OneDrive for work or school if set up). You won't lose files or data by resetting OneDrive on your computer.

  • If you had chosen to sync only some folders before the reset, you will need to do that again once sync has completed. Read Choose which OneDrive folders to sync to your computer for more information.

  • You will need to complete this for your personal OneDrive and OneDrive for work or school