Skip to content

DeleteKnowledgeBaseDocuments

Source: src/AWS/Bedrock/DeleteKnowledgeBaseDocuments.ts

Runtime binding for bedrock-agent:DeleteKnowledgeBaseDocuments — remove specific documents from the bound DataSource’s knowledge base index.

The binding grants the function bedrock:DeleteKnowledgeBaseDocuments scoped to the data source’s parent knowledge base.

// init
const deleteDocuments =
yield* Bedrock.DeleteKnowledgeBaseDocuments(dataSource);
// runtime
yield* deleteDocuments({
documentIdentifiers: [
{ dataSourceType: "CUSTOM", custom: { id: "welcome-doc" } },
],
});