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. On your computer keyboard, press the  Windows key and  R at the same time to open the Run dialog box.

Icon showing Windows key plus the letter R

2. Copy or type  wsreset.exe into the box then select  OK.

Note: A blank Command Prompt window will open and close briefly, then the Microsoft Store app will open. You can ignore these and close any unwanted windows.​​​

Icon showing a Run dialog with reset commands

If OneDrive is still not syncing, let's continue with resetting the OneDrive sync app.

3. Press the  Windows key and  R again.

Icon showing Windows key plus the letter R

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

Icon showing a Run dialog with reset commands

5. 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

Icon showing a Run dialog with reset commands

6. If you still 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.

Icon showing a Run dialog with reset commands

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

Icon showing the Windows Start menu

Notes: 

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

  • If you had chosen to sync only some folders before the reset, you will need to do that again once sync has completed. You will need to complete this for your personal  OneDrive and OneDrive for work or school accounts. Read  Choose which OneDrive folders to sync to your computer for more information.

Tip: If you're not sure which OneDrive app you have, read Which OneDrive app do I have?

  1. Press  Start  and enter apps:onedrive

  2. Select App settings

  3. Scroll down the list and select Reset.

During a reset, OneDrive does the following:

  • Deletes the DAT file.

  • Stores the application logs in the registry.

  • Stores the settings on the disk.

When OneDrive restarts, it checks with the registry to confirm the reset has taken place and then loads the settings and re-builds the DAT file.

You won't lose any data by resetting  OneDrive.

Need more help?

Contact support icon

Contact Support For help with your Microsoft account and subscriptions, visit Account & Billing Help.

For technical support, go to Contact Microsoft Support, enter your problem and select Get Help. If you still need help, select Contact Support to be routed to the best support option.

Work or school badge

Admins Admins should view Help for OneDrive Admins, the OneDrive Tech Community or contact Microsoft 365 for business support.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.