To reset OneDrive on Windows 11, press Windows + R, paste %localappdata%\Microsoft\OneDrive\onedrive.exe /reset and select OK. OneDrive closes, clears its settings and reconnects, then runs a full sync. Resetting doesn't delete your files, either on the PC or in the cloud. If Windows can't find that path, use the Program Files versions of the same command shown below.
A reset is the standard fix when OneDrive is stuck on "Processing changes", won't sign in, or shows sync errors that don't clear. This guide covers every version of the OneDrive reset command, what happens afterwards, and what to try before and after.
What Does Resetting OneDrive Do?
Resetting OneDrive disconnects all your existing sync connections, clears the app's settings and rebuilds its local database, then reconnects and re-checks every file. That covers both personal and work or school accounts on the PC.
Microsoft's Reset OneDrive support page states plainly that you won't lose files or data by resetting OneDrive on your computer. Here's what changes and what doesn't:
| After a OneDrive reset | What happens |
|---|---|
| Files in the cloud | Unchanged |
| Files in your local OneDrive folder | Kept, then re-checked against the cloud |
| OneDrive settings and sync database | Cleared and rebuilt |
| Choose folders (selective sync) choices | Lost; you pick folders again for each account |
| First sync afterwards | Full sync, which can take a while with many files |
The cause and effect is the key point. Sync problems often come from OneDrive's local database (a set of DAT files) getting out of step with the cloud. Deleting and rebuilding it forces OneDrive to compare every file again, which clears most stuck states, at the cost of a slower first sync.
When Should You Reset OneDrive?
Reset OneDrive when simpler steps haven't fixed a sync problem. Try these first, because they're quicker and don't trigger a full re-sync:
- Check the cloud icon in the taskbar for a specific error message and follow its link if there is one.
- Pause and resume syncing: select the OneDrive icon, then the gear icon, Pause syncing, and resume after a minute.
- Quit and restart OneDrive: select the gear icon and Quit OneDrive, then open OneDrive from Start.
- Check storage: a full OneDrive stops uploads. Free accounts include 5 GB; our Microsoft 365 Basic vs Personal comparison explains the larger paid tiers.
- Restart Windows and install any pending updates.
If OneDrive is still stuck on "Processing changes", "Looking for changes" or a sign-in loop after that, it's time to reset.
How to Reset OneDrive on Windows 11 with the Reset Command
The OneDrive reset command runs from the Run box and works on Windows 11 and Windows 10. The path depends on how OneDrive was installed, so try them in order.
- Press Windows + R to open Run.
- Optionally, type
wsreset.exeand select OK first. Microsoft includes this step in its instructions; a Command Prompt window may flash and the Microsoft Store will open, which you can close. - Press Windows + R again, paste this command and select OK:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset - If you see "Windows cannot find…", run this instead:
C:\Program Files\Microsoft OneDrive\onedrive.exe /reset - If that also fails, try:
C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset - Wait for the OneDrive cloud icon to disappear from the taskbar, then reappear. If it doesn't return within a few minutes, open Start, type OneDrive and open the app.
If none of the three paths exist, the OneDrive desktop app isn't installed; download it from Microsoft's OneDrive site and sign in again. Some PCs also have the OneDrive Store app, which you can reset separately: open Start, type apps:onedrive, choose App settings and select Reset.
What to Do After Resetting OneDrive
After a reset, check that OneDrive has signed back in, restore any custom choices, and let the first sync finish before judging the result.
- Select the OneDrive cloud icon and confirm it shows your account rather than a sign-in prompt. Sign in again if asked.
- If you previously synced only some folders, open Settings → Account → Choose folders and select them again for each account.
- Check Settings → Sync and backup → Manage backup to confirm Desktop, Documents and Pictures backup is still set the way you want. This also decides where screenshots are stored, as explained in our guide to where Windows screenshots go.
- Leave the PC on and connected while the full sync runs. Large libraries can take hours on slow connections.
What If Resetting OneDrive Doesn't Work?
If OneDrive is still failing after a reset, the next step is unlinking and relinking the PC, which rebuilds the connection from scratch without deleting cloud files.
- Select the OneDrive icon, then the gear icon and Settings.
- Open Account and select Unlink this PC, then confirm.
- Sign in again when the setup screen appears and choose the same OneDrive folder location when asked.
Also check the basics around OneDrive. If it doesn't start with Windows, make sure it's enabled in Startup apps (see our guide to managing startup programs in Windows 11). If File Explorer freezes when you open the OneDrive folder, our fix for File Explorer not responding covers shell and cache issues. For work or school accounts, your IT admin can check whether policies, licensing or tenant-wide problems are involved.
A Common Mistake We See
The most common mistake is uninstalling OneDrive or deleting the local OneDrive folder to "start fresh" when a sync error appears. With Files On-Demand, many files in that folder are placeholders that exist only in the cloud, and with folder backup turned on, your Desktop and Documents live inside it too. Deleting or moving things there while sync is running can delete them from the cloud as well, and they then sit in the OneDrive recycle bin for a limited time.
Run the reset command first. It's the step Microsoft designed for this job, and it leaves your files where they are.
Frequently Asked Questions
What is the OneDrive reset command?
The main OneDrive reset command is %localappdata%\Microsoft\OneDrive\onedrive.exe /reset, entered in the Run box (Windows + R). If Windows can't find it, use C:\Program Files\Microsoft OneDrive\onedrive.exe /reset or the Program Files (x86) version. OneDrive restarts automatically, or you can open it from Start.
Will a OneDrive reset delete my files?
No. Microsoft states you won't lose files or data by resetting OneDrive. The reset clears the app's settings and sync database, then runs a full sync. Your cloud files and local copies stay put, though you'll need to reselect any folders you had chosen to sync.
How long does it take to reset OneDrive?
The reset itself takes a minute or two while OneDrive closes and reopens. The full sync that follows depends on how many files you have and your connection speed. A few thousand files may finish quickly, while very large libraries can take hours.
How do I reset OneDrive if the command doesn't work?
Try all three paths: the %localappdata% path, Program Files and Program Files (x86). If none exists, the desktop app isn't installed, so download it from Microsoft. If the reset runs but sync still fails, unlink this PC in OneDrive settings and sign in again.
Does resetting OneDrive sign me out?
It disconnects existing sync connections, so OneDrive may ask you to sign in again or confirm your folder location when it restarts. Your Microsoft account itself isn't affected, and other Microsoft 365 apps stay signed in.
Can I reset OneDrive on Windows 10 the same way?
Yes. The OneDrive reset command and paths are the same on Windows 10 and Windows 11. Windows 10 no longer receives regular security updates, though, so keep OneDrive and the system as up to date as your support options allow.
Conclusion
To reset OneDrive, run onedrive.exe /reset from the Run box using the path that exists on your PC, let OneDrive restart, reselect any synced folders and allow the full sync to finish. It's safe for your files and fixes most stuck syncs. If you want more cloud storage alongside the Office apps, see the subscription options in our Office 365 collection.
Useful Links
| Resource | Link |
|---|---|
| Storage plans compared | Microsoft 365 Basic vs Personal |
| Startup apps | Manage Startup Programs in Windows 11 |
| Screenshot locations | Where Do Screenshots Go on Windows? |
| Microsoft 365 subscriptions | Office 365 collection |
| Reset OneDrive (Microsoft) | Reset OneDrive |
Lascia un commento