To disable OneDrive on Windows 11 and stop syncing, use one of these options depending on what is needed:
- Unlink OneDrive from the PC
- Select the OneDrive cloud icon in the notification area.
- Select Help and Settings > Settings.
- Open the Account tab.
- Select Unlink this PC > Unlink account.
- This stops OneDrive from syncing on the computer. Files are not deleted and can still be accessed by signing in to OneDrive on the web.
- Quit OneDrive completely
- Right-click the OneDrive icon on the taskbar.
- Select Pause syncing and then Quit OneDrive.
- This stops syncing for everything until OneDrive is started again.
- Uninstall OneDrive
- Select Start, type Programs, then open Add or remove programs.
- Under Apps & features, find Microsoft OneDrive and select Uninstall.
- This removes the app from the PC. Files and data are not lost.
For the "Path is too long" message:
- Shorten the file name or folder names.
- Move the file or folder closer to the root of the drive so the full path is shorter.
- If the issue is in OneDrive sync, OneDrive can show a "path is too long" notification when a synced file’s full path exceeds 520 characters.
- Office desktop apps and File Explorer commonly still hit a 260-character local path limit.
If the goal is to stop OneDrive because of these path errors, the most direct option is to unlink the PC or uninstall OneDrive.