How to Reset OneDrive on Windows 11, Windows 10 and Mac

To reset OneDrive on Windows, press Windows + R, paste this command and select OK:

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset

OneDrive closes, clears its sync data and does a full sync when it starts again. Your files stay where they are.

In this tutorial, I’ll show you how to reset onedrive on Windows 11 and Windows 10, which of the three install paths your PC uses, how to reset it on a Mac, and when unlinking is the better fix.

Quick answer: Run %localappdata%\Microsoft\OneDrive\onedrive.exe /reset from the Run box. If Windows can’t find it, use the Program Files or Program Files (x86) path instead. A reset clears sync settings, not your files, and OneDrive syncs everything again afterward.

How to reset OneDrive on Windows 11 and Windows 10

The steps are the same on both versions. Before you start, close any Office files that sit in a synced folder, including a synced SharePoint library.

  1. Press Windows + R, type wsreset.exe and select OK. The Microsoft Store opens; you can close it.
  2. If OneDrive still isn’t syncing, press Windows + R again and run the reset command below.
  3. If you see a “Windows cannot find” message, try the second command, then the third.
  4. Wait for the OneDrive cloud icon to come back in the notification area. If it doesn’t, open Start, search for OneDrive and open it.

Here are the three commands, one per install location:

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
"C:\Program Files\Microsoft OneDrive\onedrive.exe" /reset
"C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe" /reset

Only one of them works on a given PC. If none of them does, the OneDrive sync app isn’t installed at all.

Which onedrive.exe path does my PC use?

You don’t have to guess. This read-only PowerShell snippet checks all three folders and changes nothing:

$paths = [ordered]@{
    '%localappdata%\Microsoft\OneDrive'      = "$env:LOCALAPPDATA\Microsoft\OneDrive\OneDrive.exe"
    'C:\Program Files\Microsoft OneDrive'       = 'C:\Program Files\Microsoft OneDrive\OneDrive.exe'
    'C:\Program Files (x86)\Microsoft OneDrive' = 'C:\Program Files (x86)\Microsoft OneDrive\OneDrive.exe'
}
foreach ($p in $paths.GetEnumerator()) {
    [pscustomobject]@{ Folder = $p.Key; 'OneDrive.exe found' = Test-Path $p.Value }
}

On my Windows 11 PC, only the first folder returned True:

PowerShell Test-Path output showing OneDrive.exe found only in the localappdata OneDrive folder

That’s the usual per-user install. A PC where IT installed OneDrive for all users typically shows True under Program Files instead.

How do I know OneDrive restarted after the reset?

Look for the cloud icon in the notification area. If you prefer a quick check, this command shows whether the sync app is running and its version:

Get-Process -Name OneDrive -ErrorAction SilentlyContinue |
    Select-Object Name, Id, @{ Name = 'Version'; Expression = { $_.FileVersion } }
Get-Process output showing the OneDrive sync app running with its version number

A row like mine (version 26.183.0920.0005) means OneDrive is up. No output means it isn’t running, so start it from the Start menu.

The first sync after a reset can take a while on large SharePoint document libraries. Give it time to finish before you try anything else.

What does resetting OneDrive delete?

A reset deletes OneDrive’s local DAT file, which tracks sync state. It keeps its logs in the registry and its settings on disk. When OneDrive starts again, it reads those settings and rebuilds the DAT file.

Here’s what that means for you:

  • Your files stay. Microsoft says you won’t lose files or data by resetting.
  • All sync connections drop for a moment, both personal and work or school accounts.
  • Selective sync resets. If you synced only some folders, choose them again after the first sync.
  • A full sync runs, so expect extra network traffic for a while.

Files you saved in OneDrive or SharePoint are also safe in the cloud. Not sure where a file really lives? See the difference between OneDrive and SharePoint.

Reset the OneDrive app from the Microsoft Store

Some PCs run the OneDrive app from the Microsoft Store instead of the classic sync app. That version has its own reset button:

  1. Open Start and type apps:onedrive.
  2. Select App settings.
  3. Scroll down and select Reset.

How to reset OneDrive on a Mac

The Mac uses a reset script inside the app package:

  1. Select the OneDrive cloud icon in the menu bar, then Preferences > Pause > Quit OneDrive.
  2. Open Applications, Control-click OneDrive and select Show Package Contents.
  3. Go to Contents > Resources and double-click ResetOneDriveApp.command. For the standalone app, use ResetOneDriveAppStandalone.command.
  4. Start OneDrive, finish setup and pick your previous sync location, so unchanged files don’t download again.

If the scripts aren’t there, the app is too old. Move it to the Trash and install the latest version.

Reset vs unlink: which one should you use?

A reset keeps your sign-in and rebuilds the sync database. Unlinking signs the PC out of the account, and you sign in again afterward.

SituationTry this
Sync is stuck, the icon shows errors, files won’t uploadReset OneDrive
Wrong account, or you’re moving the OneDrive folderUnlink this PC, then sign in again
Reset didn’t helpUnlink and re-link

To unlink on Windows, select the cloud icon, then Help & Settings > Settings > Account > Unlink this PC. Microsoft says unlinking doesn’t lose data either.

Try a restart and a cache clean first, though. Old cached data in Office and the browser causes many “sync” problems, so clearing the SharePoint cache is a cheap first step.

Common errors when you reset OneDrive

  • “Windows cannot find …”: OneDrive isn’t in that folder. Run the next path from the list above.
  • OneDrive doesn’t start again: open it from the Start menu. The reset doesn’t always relaunch it.
  • Some folders vanished from File Explorer: they were selective-sync folders. Pick them again in OneDrive settings.
  • Library shortcuts look missing: give the full sync time to finish before you re-add anything.

For that last case, it helps to know how OneDrive, SharePoint and Teams store files, since shortcuts point to SharePoint libraries.

A few more posts that help when files and sync act up:

After a reset, OneDrive tries to sync every library again. If you’d rather drop a few of them, follow my steps to stop syncing SharePoint libraries in OneDrive.

Frequently Asked Questions

Will resetting OneDrive delete my files?

No. A reset removes OneDrive’s sync database and reconnects your accounts, but your files stay on the PC and in the cloud. OneDrive then runs a full sync.

How long does a OneDrive reset take?

Microsoft doesn’t give a time. The reset command finishes quickly, but the full sync afterward depends on how many files you have, so a large library can take hours.

Is the reset command the same on Windows 11 and Windows 10?

Yes. Both use onedrive.exe /reset from one of the three install paths. Microsoft lists all of them in its Reset OneDrive support article.

Do I need to sign in again after a reset?

Usually OneDrive reconnects with the account you already use. If it shows a sign-in screen, sign in with the same account and keep your existing OneDrive folder.