When OneDrive stops syncing, shows persistent errors, or behaves unexpectedly, a full reinstall is often recommended. But reinstalling takes time and can re-download the entire OneDrive application package. You can reset OneDrive directly in Windows without uninstalling the app, which re-registers the sync client and clears stuck states. This article explains the built-in reset command, what it does to your settings, and how to run it on Windows 11 and Windows 10.
Key Takeaways: Reset OneDrive Without Reinstalling
- Run the command
onedrive.exe /resetfrom the Run dialog: This re-registers the OneDrive sync client without removing the application files or your local OneDrive folder. - Use
onedrive.exe /uninstallfollowed byonedrive.exe /install: This performs a deeper reset that clears all cached credentials and registry settings while still avoiding a full download from the Microsoft Store. - Check the OneDrive icon in the system tray after reset: If the icon does not reappear within two minutes, restart the OneDrive process manually from the Start menu.
What the OneDrive Reset Command Does and Does Not Do
The onedrive.exe /reset command is a built-in switch in the OneDrive sync client. It stops all sync processes, disconnects the local OneDrive folder from the cloud, clears the sync database and cached files that track file states, and then re-registers the OneDrive executable with Windows. This action does not delete your local OneDrive folder or any files stored in it. It does not uninstall the OneDrive application. It also does not remove the OneDrive shortcut from File Explorer navigation pane. The reset command essentially forces the client to rebuild its sync relationship with the Microsoft 365 cloud service from scratch.
The reset is useful when OneDrive is stuck on a specific status such as “Processing Changes,” “Syncing a large number of files,” or showing a red X error on all files. It is also the first troubleshooting step recommended by Microsoft support for sync failures that are not caused by network connectivity or file path length limits. If the reset does not resolve the issue, the next step is to run the uninstall and re-register switches in sequence, which removes the sync client registration entirely and then reinstalls it from the local cached installer.
Steps to Reset OneDrive Using the Built-In Command
Follow these steps to reset OneDrive on Windows 11 or Windows 10 without reinstalling.
- Close OneDrive completely
Right-click the OneDrive cloud icon in the system tray notification area and select Pause syncing for 2 hours. Then right-click the icon again and select Settings. In the Settings window, go to the Account tab and click Unlink this PC. Confirm the unlink. This step stops the sync engine and disconnects your account so the reset can work cleanly. - Open the Run dialog
Press Windows key + R on your keyboard. The Run dialog box appears. - Type the reset command
In the Open field, type exactly:onedrive.exe /reset
Click OK or press Enter. A command window may flash briefly. This is normal. The reset process runs silently in the background. - Wait for the OneDrive icon to reappear
After a few seconds, the OneDrive cloud icon should reappear in the system tray. If it does not appear within two minutes, typeonedrive.exein the Run dialog and press Enter to start the client manually. - Sign in again
When OneDrive opens, it will ask you to sign in with your work or school account. Enter your credentials and complete the setup. Your local OneDrive folder remains intact. OneDrive will re-scan the folder and begin syncing your files again.
If the Simple Reset Does Not Work: Uninstall and Re-Register Method
If OneDrive still shows errors after the standard reset, use the uninstall switch followed by the install switch. This method removes the OneDrive registration from Windows and then reinstalls the sync client using the installer already cached on your computer. You do not need to download anything from the Microsoft Store.
- Open the Run dialog
Press Windows key + R. - Run the uninstall command
Type exactly:onedrive.exe /uninstall
Click OK. This removes the OneDrive sync client registration and all cached settings. Your local OneDrive folder and files remain in place. - Run the install command
After the uninstall completes, open the Run dialog again and type:onedrive.exe /install
Click OK. This reinstalls the OneDrive sync client from the local installer cache. The process takes a few seconds. - Sign in and set up sync
OneDrive will start automatically. Sign in with your work or school account. Choose which folders to sync. Your existing local OneDrive folder is recognized and reconnected.
What to Do If OneDrive Still Has Issues After Reset
OneDrive icon does not appear after reset
If the cloud icon does not show up in the system tray, press Windows key + R, type onedrive.exe, and press Enter. If OneDrive still does not launch, check the Windows Task Manager to ensure no OneDrive processes are running. End any stale processes before retrying the reset command.
Reset command returns “The system cannot find the path specified”
This error means the OneDrive executable is not in the default location. On 64-bit Windows, the full path is typically C:\Program Files\Microsoft OneDrive\onedrive.exe. On 32-bit systems, it is C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe. Open a Command Prompt as administrator and navigate to the correct folder, then run the reset command from that location.
OneDrive still shows sync errors after reset
If sync errors persist, check the OneDrive sync status icon for specific error codes. Common issues include file name length exceeding 400 characters, file path length exceeding 255 characters, or invalid characters in file names. Use the OneDrive web interface to identify the problematic file and rename or move it. Then run the reset command again.
Reset vs Uninstall and Reinstall: Key Differences
| Item | Reset (onedrive.exe /reset) | Uninstall and Re-Register (onedrive.exe /uninstall + /install) |
|---|---|---|
| What is cleared | Sync database, cached file states, and sync relationships | All registry settings, cached credentials, and sync database |
| What is preserved | Local OneDrive folder, files, and application files | Local OneDrive folder and files |
| Time to complete | 10 to 30 seconds | 20 to 60 seconds |
| Requires sign-in after | Yes | Yes |
| When to use | Stuck sync, processing changes, red X errors | Reset fails, corrupted installation, missing OneDrive icon |
Resetting OneDrive without reinstalling saves time and avoids unnecessary downloads. Use the standard reset command for most sync issues. Use the uninstall and re-register method when the standard reset does not resolve the problem. Both methods keep your local files safe and do not require administrator rights to run.