Forum Discussion
timparsons
Nov 01, 2019Brass Contributor
How do I delete a list with over 5000 items?
I have a list that was forgotten about and it's continuously growing. It has over 100k items and I need to delete the list because it's over the 5000 item threshold. Does anyone know how I can do it ...
Carlos_Marins
Nov 01, 2019Iron Contributor
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 PnP Powershell it could work? Could try the command "Remove-PnPList -Identity <ListName> -Force" and see if it works?
Regards
timparsons
Nov 01, 2019Brass Contributor
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 this article that seems to solve your issue. Let me know how it goes for you!
Regards