deleteBulkItems
@spartanfx/react / deleteBulkItems
Function: deleteBulkItems()
deleteBulkItems(
payload):Promise<void>
Deletes items from SharePoint in bulk using batching.
Parameters
payload
The configuration and list item IDs to delete.
Returns
Promise<void>
Remarks
- Items should be provided as an array of IDs.
- Items are recycled (moved to the recycle bin) rather than permanently deleted.
- Includes retry logic for transient SharePoint errors.
Example
await deleteBulkItems({
listName: "Projects",
items: [1, 2, 3],
onProgressChange: console.log
});