cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

New sample script: Bulk delete SharePoint list items in batches

Open rabwill opened this issue 4 years ago • 3 comments

Docs
Author Mathew Yarlett
Original Post Inspired from this article
Description Bulk deleting items from a SharePoint list in batches
Keywords SharePoint Online Maintenance

rabwill avatar Mar 14 '21 06:03 rabwill

so just to confirm 🤔 the sample should use the spo listitem list command with pages and spo listitem remove to remove each item by id from the list right? If this is what could/should be done maybe I could try to do it?

Adam-it avatar Apr 24 '21 21:04 Adam-it

Not quite. I think the idea of the script is to use SharePoint batching to minimize the number of requests. Unfortunately, right now we don't support batching in CLI, so we'd need to implement it first before we can proceed with this script.

waldekmastykarz avatar Apr 25 '21 17:04 waldekmastykarz

@pnp/cli-for-microsoft-365-maintainers seems like it's been a while and we still don't support batching. maybe if we are still interested in it we could add a issue for it and for now close this one as it's already been some time?

Adam-it avatar Sep 16 '22 04:09 Adam-it

Let's close it for now and revisit when we support batching.

waldekmastykarz avatar Sep 23 '22 18:09 waldekmastykarz