New sample script: Bulk delete SharePoint list items in batches
| Docs | |
|---|---|
| Author | Mathew Yarlett |
| Original Post | Inspired from this article |
| Description | Bulk deleting items from a SharePoint list in batches |
| Keywords | SharePoint Online Maintenance |
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?
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.
@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?
Let's close it for now and revisit when we support batching.