Feb 23 2018 08:59 AM
Using Windows 10 OneDrive Sync client (17.005.0107.0008), synced a document library from SPO with one file.
In windows Explorer, right clicked on synced doc library, received error message that the Action can't be completed because the folder or file is open in another program. The file was deleted from SPO and shows up in the Recycle bin, but the folder can't be deleted from Windows Explorer. Is this expected behavior? Is it due to the fact the library has been synced?
Feb 23 2018 10:29 AM
Feb 23 2018 10:30 AM
Thanks, but it is not a users onedrive site, it a document library from a team site.
Feb 23 2018 10:31 AM
Feb 23 2018 10:48 AM
ok, but in my test site, there are not holds of any kind. It is a standard group enabled team site.
Feb 23 2018 10:53 AM
Feb 23 2018 11:06 AM
yes, i can deleted from the web site
Feb 23 2018 11:09 AM
Feb 23 2018 11:09 AM
Can you empty recycle bin, temp folder in app data restart and see if the issue still exists.
Feb 23 2018 11:10 AM
Feb 23 2018 11:23 AM
I'm talking about a document library that shows up a first level folder under the tenant in Windows Explorer.
One of my clients stated that they accidentally deleted an entire library from Windows Explorer and i'm trying to figure out how that could have happened because I cant do it.
Feb 23 2018 11:29 AM
Feb 24 2018 04:25 AM
Hi @Dean_Gross.
If I understand well what you mean, you are correct: AFAIK, it is not possible to delete an entire synced document library using exclusively File Explorer.
In fact, as you have already found, File Explorer refuses to delete folders representing synced (i.e. with the green check mark) libraries under the "tenant" tree that appears in the left pane.
Of course, you can empty a synced library from File Explorer, but not delete it entirely.
In order to delete the library folder from the "tenant" tree, you must first stop the synchronization from the OneDrive client UI. After you have done it, the green checkmark will disappear from the corresponding folder icon and, at that point, you are able to actually delete the folder from the "tenant" tree in the left panel of File Explorer. No restart of the client or of the computer is needed before deleting the (not anymore synced) library.
Feb 01 2019 05:59 AM
Right click on the Windows Explorer Tenant folder - click on settings. Click on 'Stop Sync' for the folder you want to delete. Hit OK. Now you can delete the folder.
..At least my experience for O365 SharePoint Sync.
Oct 28 2019 07:52 AM
Thanks, @David Chamberlain. This resolved the issue for me.
Nov 29 2019 08:19 AM - edited Nov 29 2019 08:26 AM
@David ChamberlainThanks. This works on most folders, but not on all. Two folders refuse to disappear from the Windows Explorer view. A pop-up windows displays this error:
Title: "Location is not available."
Error text: "C:\users\<abc>\<sharepointname> - documents\<channelname>\<projectname>\...\ABC is not accessible. The tag present in the reparse point buffer is invalid."
I found a post on that error on this link.
In the above path, <abc> represents my user name, <sharepointname> represents a SharePoint site of which I sync the entire document folder to Windows. <channelname> is a document subfolder and also a channel in Teams. <projectname> is the name of a project. The entire path C:\...\ABC is a 14-level deep folder tree. ABC is the lowest level folder and contains no files.
The relevant history is that this folder structure had contained project documentation, but the full tree, starting from <channelname> on down had been moved to a new SharePoint site. The path above was the longest one in the tree, and perhaps this triggered a bug.
Feb 17 2020 02:31 AM
Nov 26 2020 03:26 AM
@David Chamberlain You actually understood the problem and provided a clear solution! Thank you.
Jul 23 2021 03:04 AM
Stopping OneDrive and only then delete the folder that was creating the sync issue worked for me!
Many thanks!
May 03 2022 08:49 AM
@David Chamberlain Hi! y could unsync and then delete all the folders, but there is no way of deleting the building. The building folder still appears, any way to delete it?