I am using PnP PowerShell to access the SharePoint Online environment.
How can I delete rows of a SharePoint list?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
You can delete a list item/row using below command:
Remove-PnPListItem -List "Demo List" -Identity "1"
-Identity is the ID of the list item, or actual
Microsoft Official Reference: Remove-PnPListItem
If you want to remove all items from a SharePoint Online list then check below reference:
Additional Reference: Get-PnPListItem - Using this command first you can fetch the list items (single item or multiple items) and then you can delete the list item using above command.