SOLVED

Can't delete empty folder

Brass Contributor

In one of my sites libraries I have an empty subfolder which I can't delete.
When I right click on the folder and choose Delete I get this:

MichaelDano_0-1654238653150.png

I have no idea to who have made these shortcuts. 

I choose delete and although the folder is empty I get this:

MichaelDano_1-1654238693761.png

I'm owner of the site and have Admin privileges.

 

Any ideas on how to get rid of this subfolder?

 

Thanks in advance!
Michael

 

5 Replies

@MichaelDano 

 

If you have owner rights try to check in the Library settings for "Manage files which have no checked in version"

 

As owner you can see if a user left a file without checked in version.

This may be the reason why you are not able to delete the folder

@mr_w1nst0n - thanks, but that list was empty (which is coherent with the folder not holding any files).
best response confirmed by MichaelDano (Brass Contributor)
Solution

@MichaelDano I believe you may have an hidden file inside the folder.

 

Could you check it via PowerShell ?

Here you have already a PowerShell script as sample: SharePoint Online: PowerShell to List All Files Inventory in a Document Library - SharePoint Diary

 

@mr_w1nst0n - Thanks - you were right.
How do I unhide the files?
Why does this happen in the first place?

@MichaelDano there may be multiple reasons for that. Sometimes it depends from the application/OS system you are using.

 

In my case it was Autocad generating hidden files in the folder (synchronized to SP).

Adobe Photoshop/Lightroom also generate hidden files sometimes

 

If they are not needed, you can delete the files directly via PowerShell

1 best response

Accepted Solutions
best response confirmed by MichaelDano (Brass Contributor)
Solution

@MichaelDano I believe you may have an hidden file inside the folder.

 

Could you check it via PowerShell ?

Here you have already a PowerShell script as sample: SharePoint Online: PowerShell to List All Files Inventory in a Document Library - SharePoint Diary

 

View solution in original post