Unlink and re-link OneDrive
Unlinking and re-linking your computer to OneDrive can help solve some sync problems.
You can also use these same steps to move your OneDrive to a new location, such as an external disk drive.
Note
No data will be lost by unlinking and re-linking your OneDrive, your local folders are just disconnected from the cloud for a short while. Any changes made while you're unlinked will be synced once re-linking is complete.
Unlink your OneDrive account
Steps to unlink your OneDrive account
- Select the OneDrive cloud in your notification area to show the OneDrive pop-up.
π Blue and white OneDrive icons
- Select the OneDrive Help and Settings icon
π Settings
then select Settings. - Go to the Account tab.
π A screenshot showing the Account tab in OneDrive settings.
- Select Unlink this PC, and then select Unlink account.
Clear sign in credentials
- Press the Windows key
π WindowsLogo
+ R to open a "Run" dialog. - Enter the path %localappdata%\Microsoft\OneDrive\settings and select OK.
- Delete the PreSignInSettingsConfig.json file.
Sign in again to re-link your account
Sign in when prompted.
Tip
If OneDrive doesn't open, press the Windows key π WindowsLogo
, type OneDrive then select the OneDrive app.When you sign in, OneDrive will prompt you that a folder already exists: select Use this folder.
Tip
Select Choose new folder if you want to move your OneDrive to a new location.
OneDrive will now sync your files and folders back to your computer. OneDrive won't download all your files, (just their placeholders to save space, learn more), but this will still take some time.
Once your files have re-synced, you can clean up your Computer folder view and choose which folders to sync to your PC.
If you still have OneDrive sync issues, try resetting OneDrive.
Need more help?
Account support. For help with your Microsoft account and subscriptions, visit Account & Billing Help.
Technical support. For technical support, select Contact Microsoft Support below, enter your problem and select Get Help.
Mobile users can contact Support by opening the OneDrive app and gently shaking your device.
Community support. Communities help you ask questions, give feedback, and hear from experts with rich knowledge. Ask the Microsoft Community. Do not disclose personal or sensitive information in public forums.
