Running pnp in modern script editor spfx web part, can add items, get items from a list, but cannot delete items from a list:
$pnp.sp.web.lists.getByTitle('List Name').items .filter('Title eq Test') .delete()
Error shows up in console:
DELETE https://xxx.sharepoint.com/sites/TeamIT/spfx-sfd/_api/web/lists/getByTitle('List Name')/items?$filter=Title eq Test 400 (Bad Request)
If I take the url and drop it into Chrome, it returns the item properly.
What on earth am I missing with something this simple? Lots of documentation in pnp on how to delete a list, didn't find much for list items, is there something unique that must be submitted with a delete to get it to operate properly?