Forum Discussion
How do I delete a list with over 5000 items?
Hey timparsons ,
So, I'm assuming you tried to delete the list the easy way(using the UI) and it didn't work out.
Maybe if you try it using the https://github.com/SharePoint/PnP-PowerShell it could work? Could try the command "Remove-PnPList -Identity <ListName> -Force" and see if it works?
Regards
Carlos_Marins That didn't work, unfortunately. How could I specify which site the list is on using a similar command?
- Carlos_MarinsNov 04, 2019Iron Contributor
Hi timparsons !
Did you get any error trying to do it?
About the site question, you don't know which site is the list being stored on? Because you need that info to connect to your site through PnP PowerShell, using the "Connect-PnPOnline" command. Maybe that's why it didn't work for you.
Also, I found https://eschrader.com/2018/05/09/deleting-a-large-list-from-sharepoint/ article that seems to solve your issue. Let me know how it goes for you!
Regards