PDF download Download Article
Disconnect OneDrive from your desktop or laptop with our guide
PDF download Download Article

Do you need to unlink your OneDrive account from your Windows or Mac computer? Thankfully, doing this is very simple and only requires a couple of clicks—and you won't lose any data in the process. In this article, we'll go over how to unlink your OneDrive account on Windows and Mac, and we'll also go over a handful of frequently asked questions about unlinking, unsyncing, and uninstalling OneDrive.

Unlinking OneDrive

To unlink your OneDrive account, you'll need to open your OneDrive settings, then click on the Account tab. On PC, click Unlink this PC > Unlink account. On Mac, simply click Unlink this Mac. Your OneDrive data won't be deleted; it will still be available online on the OneDrive website.

Section 1 of 3:

Unlinking on Windows

PDF download Download Article
  1. It will be in the bottom-right corner of your screen, near where the clock is on the taskbar.
    • You may want to unlink your OneDrive account if you aren't going to use OneDrive on your computer, or you may want to unlink and re-link your account to fix syncing issues.
  2. 2
    Click the settings icon, then click Settings. The settings icon looks like a gear.
    Advertisement
  3. 3
    Click the Account tab. It's in the left-hand sidebar, under Sync and backup.
  4. 4
    Click on Unlink this PC > Unlink account. This will unlink your PC from your OneDrive account, so files will no longer sync.
  5. 5
    Open the Run dialog. The easiest way to do this is to press Win+R.
  6. 6
    Enter the path %localappdata%\Microsoft\OneDrive\settings. Press Enter on your keyboard or OK in the Run dialog box to run this command.
  7. 7
    Delete the "PreSignInSettingsConfig.json" file. This will clear your sign-in credentials from OneDrive.[1]
    • If you'd like to re-link your OneDrive account, you can do so by opening the OneDrive app and signing in again.
  8. Advertisement
Section 2 of 3:

Unlinking on Mac

PDF download Download Article
  1. 1
    Click the OneDrive icon in your menu bar. This is located at the top of your screen.
    • You may want to unlink your OneDrive account if you aren't going to use OneDrive on your computer, or you may want to unlink and re-link your account to fix syncing issues.
  2. 2
    Click Help & Settings > Preferences. This will open a new window.
  3. 3
    Click on the Account tab. It's at the top of the window, with an icon of a person.
  4. 4
    Select Unlink this Mac. This will immediately unlink your account from OneDrive.
  5. 5
    Open the Keychain Access app. If you can't see your keychains, click Window > Keychain Access in the menu bar.
  6. 6
    Select your OneDrive keychain. You may have to scroll to find this keychain.
  7. 7
    Click File > Delete Keychain > Delete References. This will delete your OneDrive sign-in credentials.
    • To re-link your OneDrive account, simply open the OneDrive app and sign in with your account.
  8. Advertisement
Section 3 of 3:

FAQ

PDF download Download Article
  1. 1
    Will unlinking my OneDrive delete any of my data? No, unlinking OneDrive won't delete any of your data. Any files that were synced with OneDrive will still be available at OneDrive.com. You can access and download those files online.
  2. 2
    How do I download my files from OneDrive before unlinking it? How you do this depends on whether you're using Windows or Mac:
    • Windows:
      • Click the OneDrive icon in your taskbar.
      • Click the gear icon, then Settings.
      • Click Sync and backup in the left-hand sidebar (it should be auto-selected when you first open settings, however).
      • Click Advanced settings to expand more options.
      • Click Download all files under the "Files On-Demand" header.[2]
    • Mac:
      • Click the OneDrive icon in your menu bar.
      • Click Help & Settings > Preferences.
      • Click the Preferences tab (it should be auto-selected when you first open settings, however).
      • Click Download all OneDrive Files now under the "Files On-Demand (Advanced)" header.[3]
  3. 3
    How do I pause OneDrive syncing? To pause syncing, right-click (or CTRL-click on Mac) the OneDrive logo in the taskbar or menu bar. Then, choose how long you want to pause syncing. You can choose 2, 8, or 24 hours. To resume syncing before the allotted pause time you chose is done, right-click (or CTRL-click) the OneDrive logo again and unpause.[4]
  4. 4
    How do I remove OneDrive from my computer? You can uninstall OneDrive like any other program on your computer. However, make sure you download all of your files and unlink OneDrive before continuing. If you don't do this before uninstalling, it will take a bit more effort to get your files back on your computer. Alternatively, you can leave the files synced with OneDrive and simply access/download them from OneDrive.com when you need them.[5]
  5. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

Disable OnedriveEasy Ways to Disable OneDrive on Windows and Mac
Remove OneDriveRemove OneDrive
Log Out of Google Drive on PC or Mac2 Quick Ways to Log Out of Google Drive on Windows or Mac
Unlink a Computer from a Dropbox Account4 Easy Ways to Unlink a Computer from a Dropbox Account
Back Up Files to OneDriveThe Best Ways to Backup Your Files to OneDrive
Stop a Google Drive Sync on PC or MacStop a Google Drive Sync on PC or Mac
Remove Microsoft Account from Windows 11Removing an MS Account from Windows 11: Personal or Work
Onedrive Not Syncing15 Easy Ways to Fix OneDrive Not Syncing on Windows or Mac
Sync a OneDrive Folder on PC or MacSync a OneDrive Folder on PC or Mac
Disable iCloud Turn Off iCloud Completely or Disable iCloud Sync: Simple Guide
Disconnect a Mapped Network DriveDisconnect a Mapped Network Drive
Remove iCloud from an iPhoneRemove iCloud from an iPhone
Disconnect iPhone from Mac7 Simple Ways to Disconnect Your iPhone from Your Mac
Backup OneNote on MacEasy Ways to Back Up, Export, & Restore OneDrive on a Mac
Advertisement

About This Article

Hannah Dillon
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Hannah Dillon. Hannah Dillon is a Technology Writer and Editor at wikiHow. She graduated with a B.A. in Journalism from North Dakota State University in 2013 and has since worked in the video game industry as well as a few newspapers. From a young age Hannah has cultivated a love for writing and technology, and hopes to use these passions in tandem to help others in the articles she writes for wikiHow.
How helpful is this?
Co-authors: 3
Updated: March 29, 2026
Views: 203
Categories: Windows
Thanks to all authors for creating a page that has been read 203 times.

Is this article up to date?

Advertisement