Forum Discussion
PraveenZnmd
Mar 29, 2023Copper Contributor
DELETING LARGE DOCUMENT LIBRARY
HELLO TEAM,
I HAVE A DOCUMENT LIBRARY WITH 65 LAKHS FILES AND UNABLE TO DELETE SINCE I AM RECEIVING LIST THRESHOLD EXCEEDED ERROR.
TRIED PNP POWERSHELL WITH PAGESIZE AND STILL NOT POSSIBLE TO DELETE.
PLEASE ADVISE
THANKS,
PRAVEEN
Try using script samples given here using PnP PowerShell and CLI for Microsoft 365 by reshmeeauckloo and AdamWojcik : Delete a library exceeding the list threshold limit. Remove the files and folders before deleting the library.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
- AdamWojcikCopper ContributorFYI, you tagged the wrong person, I'm not the Adam Wójcik you're looking for.