Batch Delete ListItem using Rest API SharePoint Online

sp13test 281 Reputation points
2021-04-16T08:30:10.753+00:00

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

Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

Accepted answer
  1. ZhengyuGuo 10,586 Reputation points Moderator
    2021-04-19T06:25:29.373+00:00

    Hi @sp13test ,

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.