This article describes a function of a custom SharePoint Online module available for download and installation here.

SPOMod found recently a new home on GitHub where it welcomes all your suggestions and contributions.



Remove-SPOListItem

Deletes a list item.


Parameters

ListTitle  Mandatory  Name of the list 
ItemID  Mandatory  ID of the item 
 

Examples

----- EXAMPLE 1 ------
Remove a single list item using its ID.
Remove-SPOListItem -ListTitle MyList6 -ItemID 4



----- EXAMPLE 2 ------
Remove a single list item defining parameters through their positions
Remove-SPOListItem MyList6 3


----- EXAMPLE 3 ------
Remove all list items
$itemsToRemove=(Get-SPOListItems -ListTitle MyList6).ID
foreach($item in $itemsToRemove){Remove-SPOListItem -ListTitle MyList6 -ItemID $item}




See Also

SPOMod Cmdlets and Resources 
Connect-SPOCSOM
Get-SPOList

New-SPOListItem
Get-SPOListItems