Forum Discussion
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.
I choose delete and although the folder is empty I get this:
I'm owner of the site and have Admin privileges.
Any ideas on how to get rid of this subfolder?
Thanks in advance!
Michael
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: https://www.sharepointdiary.com/2018/08/sharepoint-online-powershell-to-get-all-files-in-document-library.html
5 Replies
- mr_w1nst0nIron Contributor
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
- MichaelDanoBrass Contributormr_w1nst0n - thanks, but that list was empty (which is coherent with the folder not holding any files).
- mr_w1nst0nIron 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: https://www.sharepointdiary.com/2018/08/sharepoint-online-powershell-to-get-all-files-in-document-library.html