I want to delete a few dozen or so items in a SharePoint document library using the Graph API SDK. I can delete them individually like this:
for (var item in driveItems) {
await clientCtx
.Sites[site.Id]
.Drives[drive.Id]
.Items[item.Id]
.Request()
.DeleteAsync();
}
but as the number of items may grow, this becomes slow. Is there anyway to delete multiple items in one blast/batch?
I'm constrained to use the Graph API SDK and C# -- I'm not allowed to form HTTP/JSON queries manually.