Skip to main content
Version: 1.0.1

deleteBulkItems

@spartanfx/react v1.0.1


@spartanfx/react / deleteBulkItems

Function: deleteBulkItems()

deleteBulkItems(payload): Promise<void>

Deletes items from SharePoint in bulk using batching.

Parameters

payload

IProcessInBatch

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
});