SharePoint Online How to delete all the items in a list using Pnp-PowerShell

#SharePoint Online How to delete all the items in a list using Pnp-PowerShell #In this video we will delete all the items in a list List using pnp power shell commands #First We will connect to site using pnp-powershell command Query and using loop delete all the items. commands are mentioned in the description use credential manager to save user ID and Password. no need to enter again and again while using powershell to Site Connect-PnPOnline –Url Items $items =Get-PnPListItem -List "Logs" Name to delete item using ID foreach ($item in $items) { try { Remove-PnPListItem -List "Logs" -Identity $item.Id -Force } catch { Write-Host "error" } }

Video Owner : Knowledge - Craft - Truthful 2017

Post a Comment

0 Comments