Forum Discussion
Can't delete empty folder
- 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
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
- MichaelDanoJun 03, 2022Brass Contributormr_w1nst0n - thanks, but that list was empty (which is coherent with the folder not holding any files).
- mr_w1nst0nJun 04, 2022Iron Contributor
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
- MichaelDanoJun 09, 2022Brass Contributormr_w1nst0n - Thanks - you were right.
How do I unhide the files?
Why does this happen in the first place?