
Sometimes you have to delete all items from a SharePoint list. If items are less in number then you can select all by checking the circle box in front of title and select Delete option.

Manual deletion looks fine when you have limited items in a list. Suppose you have a large list and it has thousands of items. PowerShell is good option in such scenario.
Below is the PowerShell script to delete items from SharePoint large list.
Connect-PnPOnline –Url https://Expertbrains.sharepoint.com/sites/Finance/
$items =Get-PnPListItem -List "InvoiceDirectory" -PageSize 500
foreach ($item in $items)
{
try
{
Remove-PnPListItem -List "InvoiceDirectory" -Identity $item.Id -Force
}
catch
{
Write-Host "Error Occurred While Deleting the Item from the SharePoint Online List"
}
}