Skip to content

BatchDeleteDocument

Source: src/AWS/Kendra/BatchDeleteDocument.ts

Runtime binding for the BatchDeleteDocument operation (IAM action kendra:BatchDeleteDocument), scoped to one Index.

Removes documents from the index by id. Check the response’s FailedDocuments for per-document errors. Provide the implementation with Effect.provide(AWS.Kendra.BatchDeleteDocumentHttp).

const deleteDocuments = yield* AWS.Kendra.BatchDeleteDocument(index);
yield* deleteDocuments({ DocumentIdList: ["welcome"] });