How to Remove Synced SharePoint Site Folder from File Explorer
In this article
To remove a synced SharePoint site folder from File Explorer, open OneDrive settings from the cloud icon in the notification area, go to Account, and choose Stop sync next to the library you want to unlink. The folder disappears from File Explorer, and any files that were only in the cloud remain online. If you want to keep a local copy, copy the files out first. This guide walks through the official method, plus what to do when the folder refuses to go away.
What You'll Need
- A Windows PC with the OneDrive sync app installed and running (the same app handles SharePoint and Teams file sync).
- Sign-in details for the Microsoft account that owns the sync relationship.
- Enough free disk space if you plan to copy files locally before removing the folder.
- Administrator permission on the PC only if you need to uninstall or reset OneDrive.
Step-by-Step
- Check what is actually synced. In File Explorer, look at the left navigation pane. Synced SharePoint libraries appear under the organisation name, often with a cloud or building icon. Note the exact library name you want to remove.
- Decide whether to keep a copy. If the library contains files you need offline, open the folder, select the files, and copy them to a local folder such as Documents. Files that are online-only will not be available after you stop syncing, so copy them while the sync is still active.
- Open OneDrive settings. Click the cloud icon in the notification area (bottom-right of the taskbar, possibly under the ^ arrow). If you do not see it, open Start, type OneDrive, and open the OneDrive desktop app.
- Go to the Account tab. In the settings window, select Account. You will see a list of the folders and libraries linked to your account. Labels can differ slightly by app version and region, but the Account tab is consistent.
- Choose Stop sync for the SharePoint library. Next to the library you want to remove, click Stop sync. Confirm the prompt. This unlinks that library from your PC; it does not delete anything on SharePoint.
- Wait for the folder to disappear. File Explorer usually updates within a few seconds. If the folder remains, press F5 to refresh the view.
- Remove any leftover empty folder. If an empty folder is left behind, right-click it and choose Delete. Because the sync relationship is already stopped, this only removes the local placeholder.
- Verify in the browser. Open the SharePoint site in your browser and confirm the files are still there. This reassures you that stopping sync did not remove the online copy.
Common Mistakes
- Deleting the folder in File Explorer instead of stopping sync. Deleting a synced folder can delete the online files too, depending on the sync state. Always use Stop sync first.
- Assuming Stop sync deletes SharePoint data. It only removes the local link. The library stays on the SharePoint site.
- Forgetting online-only files. Files marked with a cloud icon are not stored on the PC. Copy them or open them once to download before you unlink.
- Stopping sync for the wrong library. Similar names are common. Check the site URL or the folder path before confirming.
- Signing out of OneDrive entirely. That removes all synced folders, not just one. Use Stop sync per library instead.
Tips
- You can re-add the library later from the SharePoint site using the Sync button; the steps are reversible.
- If you only want to free space, consider setting files to online-only instead of removing the sync. Right-click a folder and choose Free up space.
- Keep OneDrive updated. Older versions can leave stale entries in File Explorer.
- Use the same Microsoft account that was used to set up the sync; a different account will not show the library in the Account tab.
- If you use Teams, files opened from the Files tab may also create a sync link. Check the Account tab for entries labelled with the team name.
Troubleshooting
If the folder is still in File Explorer after Stop sync, try these in order:
- Restart File Explorer. Open Task Manager, find Windows Explorer, and choose Restart. This refreshes the navigation pane.
- Restart the PC. A reboot clears locked handles that can keep the folder visible.
- Check for a second sync link. Open OneDrive settings > Account again. If the same library appears twice, stop sync on both entries.
- Reset OneDrive. Open Start, type Run, and enter
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset. OneDrive restarts and re-syncs your remaining libraries. This does not delete online files, but it can take time to rebuild the local cache. - Unlink and relink the account. In OneDrive settings > Account, choose Unlink this PC, then sign in again and re-sync only the libraries you want. This removes all synced folders from File Explorer, so plan for re-adding the ones you need.
- Remove leftover registry entries only as a last resort. This is not recommended for most users; if the folder persists after a reset and relink, contact Microsoft support rather than editing the registry.
If the Stop sync option is greyed out, sign out and back in to OneDrive, or check that the library is not paused or in an error state. A sync error can block the option until it clears.
Frequently Asked Questions
Does stopping sync delete the SharePoint files?
No. Stop sync only removes the local link. The files remain on the SharePoint site and are available in the browser.
Will the folder come back after a Windows update?
It should not. The sync relationship is stored in OneDrive settings, not in Windows updates. If it reappears, check whether you signed in again with the same account and re-enabled sync.
Can I remove just one subfolder from a synced library?
OneDrive syncs the whole library you selected. To exclude a subfolder, stop syncing the library and re-sync only the parts you need, or use the SharePoint site to work with the rest online.
What happens to files I marked as "Always keep on this device"?
They stay on the PC as normal files after you stop syncing, but they are no longer linked to SharePoint. Changes made to them will not sync back.
Do I need to be an administrator to stop sync?
No. Any user signed in to the OneDrive app can stop sync for their own account. Administrator rights are only needed for uninstalling or resetting the app system-wide.
Can I remove a synced Teams folder the same way?
Yes. Teams file sync uses the same OneDrive app. Open OneDrive settings > Account and stop sync for the entry that matches the team library.