You can unlink OneDrive from your PC without deleting the files stored on your computer by choosing to keep a local copy. This prevents OneDrive from syncing changes but preserves your files on your hard drive.

Time 5 min · Steps 8 · Level Easy

Understanding OneDrive Unlinking vs. Deletion

Unlinking OneDrive from your PC is different from deleting files from OneDrive. Unlinking simply stops OneDrive from syncing with your computer; your files remain both in your OneDrive cloud storage and on your PC’s hard drive. Deleting files from OneDrive removes them from the cloud and, depending on your settings, may also delete them from your computer. This guide focuses on the unlinking process, which preserves your local copies.

Before You Start: A Quick Checklist

Before unlinking, ensure you have enough free space on your PC’s hard drive. OneDrive syncs files locally, so a full drive can cause issues. Back up any critically important files to an external drive or another cloud service as an extra precaution, even though unlinking shouldn't delete anything. Check your internet connection is stable, as the unlinking process may involve uploading a small amount of data.

Step-by-Step: Unlinking OneDrive and Keeping Local Copies

  1. Locate the OneDrive Icon: Find the OneDrive cloud icon in your system tray (usually in the bottom-right corner of your screen, near the clock). You might need to click the "Show hidden icons" arrow to see it.
  2. Open OneDrive Settings: Right-click the OneDrive icon. A menu will appear; select "Settings."
  3. Navigate to the Account Tab: In the OneDrive settings window, click the "Account" tab.
  4. Choose "Unlink this PC": Under the "Your Microsoft Account" section, you’ll see an option labeled "Unlink this PC." Click this button.
  5. Select "Keep on this PC": A confirmation window will appear. Crucially, select the option "Keep on this PC." This ensures that the files currently synced to your computer remain stored locally.
  6. Confirm Unlinking: Click the "Unlink account" button to confirm your choice. OneDrive will then disconnect from your computer.
  7. Verify Local Storage: You should see all your files and folders are still present.
  8. Close OneDrive: You can now close the OneDrive application completely. It will no longer run in the background and sync with the cloud.

What Happens After Unlinking?

Once unlinked, changes you make to files on your PC will no longer automatically sync to OneDrive. If you want to access those files from other devices, you'll need to manually upload them to OneDrive through the OneDrive website or another device. Conversely, changes made to files on other devices won't be reflected on your PC unless you manually download them.

Worked Example: Managing a 5GB Photo Library

Let's say you have a 5GB photo library stored in your OneDrive folder. After unlinking, those 5GB of photos remain on your PC’s hard drive. If your hard drive has at least 5GB of free space (plus some buffer for other files), everything will work as expected. If your hard drive has only 4GB free, you'll need to move some files to an external drive or delete unnecessary files *before* unlinking to avoid issues. To verify, check your drive space by right-clicking on your C: drive, selecting "Properties", and noting the "Free space" amount.

Common Mistakes and How to Avoid Them

  • Accidental Deletion: Selecting "Delete local files" instead of "Keep on this PC" during unlinking. Cause: This will remove all synced files from your computer, potentially leading to data loss. Solution: Double-check your selection before confirming the unlinking process.
  • Insufficient Hard Drive Space: Attempting to unlink with a nearly full hard drive. Cause: OneDrive might fail to unlink, or you might encounter errors when accessing your local files. Solution: Free up disk space before unlinking.
  • Forgetting About Syncing: Assuming files will automatically update across devices after unlinking. Cause: Changes made on one device won't be reflected on others. Solution: Manually upload files to OneDrive if you need to share them across devices.
  • Confusing Unlinking with Deleting: Accidentally deleting files from the OneDrive website or another device after unlinking. Cause: This removes the files from the cloud. Solution: Be mindful of where you are deleting files and whether they are synced locally.
Yes, you can re-link OneDrive to your PC at any time. Simply sign in to your Microsoft account and follow the OneDrive setup prompts. When you re-link, you’ll be given the option to sync existing files or choose a new location for your OneDrive folder.

How Do I Verify My Files Are Still on My PC?

After unlinking, open File Explorer (Windows) or Finder (Mac). Navigate to your user folder and look for the OneDrive folder. Double-check that all your files and folders are present and accessible. You can also try opening a few files to ensure they haven't been corrupted.

What If I Get an Error Message During Unlinking?

If you encounter an error, try restarting your computer and attempting the unlinking process again. Ensure you have a stable internet connection. If the problem persists, consult the Microsoft OneDrive support website for troubleshooting steps.

Official source: Microsoft Support