最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

sharepoint - How to delete multiple drive items in a batch using GraphAPI SDK - Stack Overflow

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论