Forum Discussion
Cannot remove SP documents library from OneDrive in File Explorer
A smoother strategy involves ensuring OneDrive sync is halted to prevent further conflicts. Then, diving into OneDrive's settings to manually disconnect the library could be the trick. This involves navigating to the settings and finding an option to deselect the problematic library, though it's not always straightforward due to varying sync issues. When direct methods don't pan out, commanding the situation through Command Prompt with admin rights might be necessary. Using the rmdir command to remove the folder demands precision and caution to avoid unintended data loss.
Permissions in SharePoint Online could also be a blockade. Ensuring you have the right permissions to make changes is crucial. Persisting issues often mean reaching out to Microsoft Support is the best course of action, as they can offer targeted advice for these situations. Additionally, it's an opportune moment to guide users on file naming and folder structures in SharePoint, aiming to dodge character limit issues from the start. Approaching folder and file manipulations, especially with command-line tools, requires careful consideration. If uncertainty lingers, leaning on IT professionals or Microsoft Support is a prudent choice.
The below steps will reset OneDrive and clear the cached OneDrive information. Please complete all steps.
To reset OneDrive:
Click on OneDrive sync icon.
Click on settings.
Click on Unlink this PC.
Uninstall OneDrive from the laptop via programs/features.
Press the Windows key and R to open the Run dialog box.
Copy any of this and paste it into the dialog window, then press OK.
%localappdata%\Microsoft\OneDrive\onedrive.exe /resetC:\Program Files\Microsoft OneDrive\onedrive.exe /reset
C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset
---------------------------------------------------------------------------------
To clear OneDrive cached information:
In the window search bar, type in credential Manager.
Click on Windows Credential
Click on the drop down beside OneDrive, then click on remove. (Remove all OneDrive).
Next:
In the widow search bar, type in Registry Editor.
Click on HKEY_CURRENT_USER >>>>> SOFTWARE >>>>> MICROSOFT >>>>> Right click on OneDrive and then delete.
Next:
Launch your File Explorer.
Click on this PC.
Click on Windows C: Drive
Click on User.
Click on the affected user.
Rename all OneDrive by appending (.old) when renaming.
Lastly:
Log in to user OneDrive on the web.
Click on settings.
Click on sync this OneDrive.
------------------------------------------------
Restart the laptop and install the OneDrive application. Sign into OneDrive and allow it to sync.
Open File Explorer and confirm the SharePoint site that you had syncing as a shortcut in OneDrive is no longer present.