In this post we will discuss how we can delete list items using PowerShell in SharePoint 2013. You can also check:
– Get Size of sub sites PowerShell Script SharePoint 2013 or 2007
– How to cancel all workflows having Suspended state in SharePoint 2013?
– Merge-SPLogFile in SharePoint 2010
Below is the PowerShell script. Open SharePoint 2013 Management Shell and run below PowerShell command.
I have a list name as “MyTestList99” which has below items. I want to delete all items using PowerShell.
$web = Get-SPweb “http://win-pfcp2dgt8di/sites/EnjoySharePoint/”
$list = $web.Lists[“MyTestList99”]
$items = $list.items
foreach ($item in $items)
After running above command, if you will refresh the list, you will not get any item in the list.
Hope this will be helpful.