How to Reset OneDrive Sync in Windows 10  

    How to Reset OneDrive Sync in Windows 10

    How to Reset OneDrive Sync in Windows 10

    Published by Category: Apps & Features
    28 Mar 2021
    Designer Media Ltd

    How to Reset OneDrive Sync in Windows 10

    OneDrive is a cloud-based storage service that comes with your Microsoft account. OneDrive is integrated into Windows 10 where you can view, browse, upload, and share the files you saved online to OneDrive from any PC, tablet, or phone.

    Once you set up OneDrive and have it running, OneDrive will automatically sync your chosen files and folders with your PC.

    Files you save to OneDrive are available online at and offline on your PC. That means you can use them anytime, even when you're not connected to the Internet. When you reconnect, OneDrive updates the online versions with changes you made offline.

    Offline files come in handy when you're stuck without an Internet connection, but they also take up space on your PC. If you're running low on storage space, you can choose OneDrive folders to sync.

    If OneDrive sync seems to be stuck for a long time and nothing else is working, try a reset. Be aware that resetting OneDrive re-syncs all your OneDrive files, which could take some time depending on how many files you’re syncing.

    This tutorial will show you how to reset OneDrive sync for your account in Windows 10.

    Here's How:

    1 Press the Win + R keys to open Run, copy and paste the command below into Run, and click/tap on OK.

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

    2 The OneDrive icon in the notification area of the taskbar should now disappear. (see screenshots below)

    How to Reset OneDrive Sync in Windows 10-onedrive-1.png
    How to Reset OneDrive Sync in Windows 10-onedrive-2.jpg
    How to Reset OneDrive Sync in Windows 10-onedrive-2b.png

    3 The OneDrive icon should automatically re-appear after a minute or two, and start re-syncing all your OneDrive files. (see screenshot below)

    You might need to click the Show hidden icons How to Reset OneDrive Sync in Windows 10-arrow.png arrow next to the notification area to see the OneDrive icon.
    How to Reset OneDrive Sync in Windows 10-onedrive-1b.png

    If the OneDrive icon doesn’t re-appear after a few minutes, open Run (Win+R) again, enter %localappdata%\Microsoft\OneDrive\onedrive.exe, and click/tap on OK.

    How to Reset OneDrive Sync in Windows 10-onedrive-3.png

    That's it,

  1. Posts : 1,983
    Windows 10 x86 14383 Insider Pro and Core 10240

    Due to something I did on the OneDrive settings, I guess, all my OneDrive files have synced to this insider installation, filling up the limited space on the hard drive, before all the OneDrive files had synced. OneDrive shows a warning that it could not proceed, due to lack of space.

    I am unsure which files from my hard drive have not been copied to the cloud, (if any), and there is 18GB of files in the cloud, so it would be difficult to be sure if I delete files on my hard drive, that they are not unique copies, and if I delete contents of folders, I may be deleting some things I may need to keep. Or am I worrying unduly?

    I reset OneDrive to try to resolve this, and then in OneDrive Settings, Account tab, Choose folders, "Sync your OneDrive files to this PC" unchecking all the boxes, but the OK button is greyed out and unavailable. Do I just have to wait until I can OK this?

    I was hoping that this would start removing all synced files from my PC.

    Do I have to manually remove several (>10)GB of files from the PC?

    I have the same problem on another PC which contains more sensitive documents, so I want to sort this out on the Insider system first.
      My Computers

  2. Posts : 61,539
    64-bit Windows 11 Pro for Workstations
    Thread Starter

    Hello Chris, :)

    If you have build 16215 or later installed, you will be able to tell which files are "online-only", "locally available", or "always keep on this device". The info at the top of the tutorial below will give more about this.

    Turn On or Off OneDrive Files On-Demand in Windows 10 Windows 10 Apps Features Tutorials

    Otherwise, you could go back to choose which folders to sync with OneDrive, and remove the ones you don't want. To be safe, I would copy the files to another location until you are sure they are still on your online OneDrive instead of PC.

    Choose Folders for OneDrive Selective Sync in Windows 10 Windows 10 Apps Features Tutorials
      My Computers

  3. Posts : 1,983
    Windows 10 x86 14383 Insider Pro and Core 10240

    Well, Shawn, I found myself going around in circles. Nothing seemed to stick on the insider machine Build version 16257, so I eventually turned off OneDrive, uninstalled the 2 OneDrive apps on and then tried to delete all the files in the OneDrive folder in my User folder that were taking up ~10GB of disk space, but something was preventing this:

    How to Reset OneDrive Sync in Windows 10-screenshot-4-.png

    After attending to deleting the folders and files that could be removed I was left with one file, an internet shortcut to OneNote Online:

    How to Reset OneDrive Sync in Windows 10-screenshot-5-.png

    I removed inheritance and changed permissions on the file so I am the single owner, but I still cannot delete the file, and thus the /OneDrive/Documents folder remains.

    Settings/Storage still seems to think that OneDrive is still full, although File Explorer reports the expected free space on the drive. Signing out and on again fixed Settings/Storage, but not the indelible file.

    Any ideas how the corrupted metadata can be purged?
      My Computers

  4. Posts : 13,574

    1) try deleting folder from safe mode

    2) try deleting it from a winpe session (macrium reflect boot drive is good for this)

    3) try deleting it from a live linux drive

    If you have files on demand set, I found it was easier to tell from a command line if files are only on cloud or on pc and cloud.

    Where size is in brackets, file is only in cloud - see extract below

    Also, as an aside, rather than copying files to a onedrive sub-folder, a neat trick is to use junction links e.g.

    mklink /j c:\onedrive\yourname\onedrive\pics c:\users\mw\pictures

    This sets up a dummy folder called pics in onedrive but actually points to pictures folder. Then if you add a file to pictures, it is synced to cloud automatically. This saves hassle of having to copy files from pictures to a real onedrive folder.


    C:\WINDOWS\system32>dir c:\users\mw\onedrive\assets
    Volume in drive C is 10 Pro
    Volume Serial Number is 8BB5-2CD0

    Directory of c:\users\mw\onedrive\assets

    02/09/2017 07:21 <DIR> .
    02/09/2017 07:21 <DIR> ..
    30/03/2017 17:06 (4,317) autounattend.xml
    01/04/2017 12:24 (1,236) MWtheme.deskthemepack
    30/03/2017 18:06 16,198 oemlogo.bmp
    02/09/2017 07:21 <DIR> Pictures
    09/04/2017 09:23 (50,185)
    30/03/2017 18:02 (79) runonce.bat
    26/08/2017 10:59 1,445,662 Screen_2017_08_26_10_58_54.wmv
    30/03/2017 18:18 (2,484) unattend.xml
    7 File(s) 1,520,161 bytes
    3 Dir(s) 195,220,467,712 bytes free
      My Computer


Tutorial Categories

How to Reset OneDrive Sync in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:17.
Find Us

Windows 10 Forums