How to Remove or Stop Syncing a Long-Path OneDrive SharePoint Folder on Mac
Question details
The user needs to safely stop syncing or remove a local SharePoint folder on macOS because its file path exceeds OneDrive's limits, without accidentally deleting the online content.

- Product
- OneDrive and SharePoint
- Device & OS
- macOS
- Scenario
- Attempting to resolve synchronization issues caused by a long folder path in a synced SharePoint directory on a Mac.
- Observed behavior
- Synchronization is prevented due to path length limitations, requiring a method to cleanly remove the local cache or stop the sync relationship without affecting the source data in the cloud.
Before making any changes to your local folders, log in to SharePoint Online via your web browser to verify that all your important files and folders are safely stored and accessible in the cloud.
Verify Online Status and Remove the Shortcut via Web Browser
Use the web interface to check if the folder exists in SharePoint Online and safely remove the sync shortcut from there.
Handling shortcuts directly from the web browser ensures that you severe the sync connection without mistakenly triggering a delete command for the actual files stored in SharePoint.
Open your preferred web browser and sign in to your OneDrive for Business or SharePoint Online account.
Search your web directory for the affected long-path shortcut folder. Verify that your files are intact.
Select the affected folder, click on the three dots (More options), and choose 'Remove shortcut' to stop it from syncing to your Mac.

Reset the OneDrive Sync Client on Mac
If the folder is only cached locally and does not appear online, resetting the OneDrive client can clear the stuck sync state.
Safely Isolate and Remove the Local Cache Folder
If the sync issue persists, safely move the local folder out of the OneDrive directory to break the sync connection before deleting it.
Experience Hassle-Free Document Management with WPS Office
Dealing with complex SharePoint sync issues and strict file path limits can be frustrating. Switch to WPS Office, a free and lightweight Microsoft Office alternative that offers seamless compatibility, a familiar interface, and reliable built-in cloud storage for your Mac.
- 1. Download and Install: Download WPS Office for Mac from the official website and easily install the application.
- 2. Open Your Files: Open your existing Microsoft Word, Excel, and PowerPoint documents directly within WPS Office.
- 3. Save and Sync: Save your files locally or use WPS Cloud for straightforward, restriction-free synchronization across all your devices.

Frequently Asked Questions
What is the file path length limit for OneDrive on Mac?
OneDrive and SharePoint generally restrict the entire file path length (including the drive name, all folder names, and the file name) to 400 characters. Exceeding this limit causes synchronization to stop or fail.
Will deleting a synced folder on my Mac also delete it from SharePoint?
Yes, if your OneDrive sync client is active and connected, deleting a file or folder locally will send a delete command to SharePoint. To prevent this, always stop syncing or move the file out of the OneDrive folder before sending it to the Trash.
Why does my SharePoint folder appear locally but not in OneDrive on the web?
If a folder appears on your Mac but not on OneDrive for the web, it is likely a locally cached folder or a broken shortcut that failed to sync. Resetting the OneDrive client can help resolve this discrepancy.
How can I rename a folder with a long path if it refuses to sync?
You should access the folder directly through SharePoint Online via your web browser to rename or restructure it. The web interface is better equipped to handle file path changes without triggering local Mac sync errors.




