question

sp13test-6829 avatar image
0 Votes"
sp13test-6829 asked Jerryzy answered

Batch Delete ListItem using Rest API SharePoint Online

Can we batch delete list item using Rest API ?

Currently, I'm using this function to delete item by id, but in once request, can only delete the single list item:

88539-snipaste-2021-04-16-16-28-49.png




Thanks in advance

office-sharepoint-server-development
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Jerryzy avatar image
1 Vote"
Jerryzy answered

Hi @sp13test-6829 ,

You can use BatchUtils.js to batch delete list item, here is a code demo for your reference:

SharePoint Online Batch API Request For Bulk CRUD Operation

Thanks
Best Regards



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.