Advertisement
In this article we are able to see how o delete items in the
list using PowerShell.
Some cases we have to delete items from the list, doing it
manually it will take time to delete items, we can do it easily while spending
a little bit time on PowerShell and we can reuse the PowerShell where ever we
need.
How to create calculated formula in SharePoint using PowerShell
Hide columns in list using client side object model in SharePoint
Enable the calculated value option in SharePoint using PowerShell
Hide columns in list using client side object model in SharePoint
Enable the calculated value option in SharePoint using PowerShell
$web = Get-SPweb "http://dotnetsharepoint.com/sites/sharepoint/deleteitems"
$list = $web.Lists[“ListNameHere”]
$items = $list.items
foreach ($item in items)
{
$deleteitem=$list.GetItemById($item.ID)
$deleteitem=$list.GetItemById($item.ID)
$deleteitem.Delete()
}
0 comments:
Post a Comment