Forum Discussion
MichaelDano
Jun 03, 2022Brass Contributor
Can't delete empty folder
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: I have no idea to who have made these shortcuts. ...
- Jun 04, 2022
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
MichaelDano
Jun 09, 2022Brass Contributor
mr_w1nst0n - Thanks - you were right.
How do I unhide the files?
Why does this happen in the first place?
How do I unhide the files?
Why does this happen in the first place?
mr_w1nst0n
Jun 10, 2022Iron Contributor
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